Add ref EthAddress

This commit is contained in:
coffeepots 2018-08-16 17:41:40 +01:00
parent 0db650199b
commit c429aa0285
1 changed files with 3 additions and 0 deletions

View File

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