diff options
author | Felix Lange <fjl@twurst.com> | 2017-01-16 17:20:20 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-01-16 17:32:40 +0800 |
commit | 51f6b6d33f5b50e16f0b04bcccd03ad370f36636 (patch) | |
tree | 871c3a0915a6b75f73619e8626c61fafd701921b /common/hexutil/hexutil_test.go | |
parent | 01f6f2d741e717f669b7ba1d6b88991f28e30c72 (diff) | |
download | go-tangerine-51f6b6d33f5b50e16f0b04bcccd03ad370f36636.tar go-tangerine-51f6b6d33f5b50e16f0b04bcccd03ad370f36636.tar.gz go-tangerine-51f6b6d33f5b50e16f0b04bcccd03ad370f36636.tar.bz2 go-tangerine-51f6b6d33f5b50e16f0b04bcccd03ad370f36636.tar.lz go-tangerine-51f6b6d33f5b50e16f0b04bcccd03ad370f36636.tar.xz go-tangerine-51f6b6d33f5b50e16f0b04bcccd03ad370f36636.tar.zst go-tangerine-51f6b6d33f5b50e16f0b04bcccd03ad370f36636.zip |
common/hexutil: fix EncodeBig, Big.MarshalJSON
The code was too clever and failed to include zeros on a big.Word
boundary.
Diffstat (limited to 'common/hexutil/hexutil_test.go')
-rw-r--r-- | common/hexutil/hexutil_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/hexutil/hexutil_test.go b/common/hexutil/hexutil_test.go index b58b4745c..324e9d348 100644 --- a/common/hexutil/hexutil_test.go +++ b/common/hexutil/hexutil_test.go @@ -46,6 +46,7 @@ var ( {referenceBig("1"), "0x1"}, {referenceBig("ff"), "0xff"}, {referenceBig("112233445566778899aabbccddeeff"), "0x112233445566778899aabbccddeeff"}, + {referenceBig("80a7f2c1bcc396c00"), "0x80a7f2c1bcc396c00"}, } encodeUint64Tests = []marshalTest{ |