mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-26 20:19:31 +00:00
Fix uint256 rpc overload to show correct hex value. #338
This commit is contained in:
parent
cfa7de5970
commit
529fda3e3e
@ -187,7 +187,7 @@ proc `%`*(value: Hash256): JsonNode =
|
||||
result = %("0x" & value.data.toHex)
|
||||
|
||||
proc `%`*(value: UInt256): JsonNode =
|
||||
result = %("0x" & value.toString)
|
||||
result = %("0x" & value.toString(16))
|
||||
|
||||
proc `%`*(value: ref BloomFilter): JsonNode =
|
||||
result = %("0x" & toHex[256](value[]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user