Merge pull request #6377 from justinlynn/hotfix/6376-eth-hex-format

Fix stuck %eth-watcher due to get-block-by-number zero-padded number RPC failure.
This commit is contained in:
Pyry Kovanen 2023-03-07 17:21:38 -06:00 committed by pkova
parent 8417431b31
commit 7eee507bab

View File

@ -733,7 +733,7 @@
::
%eth-get-block-by-number
:- 'eth_getBlockByNumber'
:~ (tape (num-to-hex bon.req))
:~ (tape (num-to-hex-minimal bon.req))
b+txs.req
==
::
@ -942,6 +942,12 @@
%- render-hex-bytes
(as-octs:mimes:html n)
::
++ num-to-hex-minimal
|= n=@
^- tape
%- prefix-hex
((x-co:co 1) n)
::
++ address-to-hex
|= a=address
^- tape