diff options
author | Felix Lange <fjl@twurst.com> | 2017-02-27 02:40:33 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-03-02 21:05:46 +0800 |
commit | 280f08be84325924ea7628a8187fd84e7cc39145 (patch) | |
tree | c7b5a3c639e5c617004630a0ea98248c3211f5d3 /common/hexutil/hexutil.go | |
parent | d304da380382245190f33878363696cd151201a9 (diff) | |
download | dexon-280f08be84325924ea7628a8187fd84e7cc39145.tar dexon-280f08be84325924ea7628a8187fd84e7cc39145.tar.gz dexon-280f08be84325924ea7628a8187fd84e7cc39145.tar.bz2 dexon-280f08be84325924ea7628a8187fd84e7cc39145.tar.lz dexon-280f08be84325924ea7628a8187fd84e7cc39145.tar.xz dexon-280f08be84325924ea7628a8187fd84e7cc39145.tar.zst dexon-280f08be84325924ea7628a8187fd84e7cc39145.zip |
common/hexutil: ensure negative big.Int is encoded sensibly
Restricting encoding is silly.
Diffstat (limited to 'common/hexutil/hexutil.go')
-rw-r--r-- | common/hexutil/hexutil.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hexutil/hexutil.go b/common/hexutil/hexutil.go index b66c0d3fe..6b128ae36 100644 --- a/common/hexutil/hexutil.go +++ b/common/hexutil/hexutil.go @@ -178,7 +178,7 @@ func EncodeBig(bigint *big.Int) string { if nbits == 0 { return "0x0" } - return fmt.Sprintf("0x%x", bigint) + return fmt.Sprintf("%#x", bigint) } func has0xPrefix(input string) bool { |