fix stint to json to output hex rather than decimal

This commit is contained in:
coffeepots 2018-05-17 19:11:47 +01:00 committed by zah
parent e125d7883e
commit 89ece166db

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