mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-11 21:04:11 +00:00
Add ref EthAddress
This commit is contained in:
parent
18e93903c9
commit
3f2311be23
@ -142,6 +142,9 @@ proc `%`*(value: EthHashStr): JsonNode =
|
||||
proc `%`*(value: EthAddress): JsonNode =
|
||||
result = %("0x" & value.toHex)
|
||||
|
||||
proc `%`*(value: ref EthAddress): JsonNode =
|
||||
result = %("0x" & value[].toHex)
|
||||
|
||||
proc `%`*(value: Hash256): JsonNode =
|
||||
result = %("0x" & $value)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user