From 51f6b6d33f5b50e16f0b04bcccd03ad370f36636 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 16 Jan 2017 10:20:20 +0100 Subject: common/hexutil: fix EncodeBig, Big.MarshalJSON The code was too clever and failed to include zeros on a big.Word boundary. --- common/hexutil/hexutil_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'common/hexutil/hexutil_test.go') 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{ -- cgit v1.2.3