Fix uint256 rpc overload to show correct hex value. #338

This commit is contained in:
kdeme 2019-06-19 14:18:48 +02:00 committed by zah
parent cfa7de5970
commit 529fda3e3e
1 changed files with 1 additions and 1 deletions

View File

@ -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[]))