fix stint to json to output hex rather than decimal

This commit is contained in:
coffeepots 2018-05-17 19:11:47 +01:00
parent 36cd28d077
commit 4e4b853365

View File

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