mirror of
https://github.com/status-im/nim-json-rpc.git
synced 2025-02-24 10:18:15 +00:00
fix stint to json to output hex rather than decimal
This commit is contained in:
parent
36cd28d077
commit
4e4b853365
@ -1,7 +1,7 @@
|
||||
import json, stint, strutils
|
||||
|
||||
template stintStr(n: UInt256|Int256): JsonNode =
|
||||
var s = n.toString
|
||||
var s = n.toHex
|
||||
if s.len mod 2 != 0: s = "0" & s
|
||||
s = "0x" & s
|
||||
%s
|
||||
|
Loading…
x
Reference in New Issue
Block a user