From 280f08be84325924ea7628a8187fd84e7cc39145 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Sun, 26 Feb 2017 19:40:33 +0100 Subject: common/hexutil: ensure negative big.Int is encoded sensibly Restricting encoding is silly. --- 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 6a92a385c..ed6fccc3c 100644 --- a/common/hexutil/hexutil_test.go +++ b/common/hexutil/hexutil_test.go @@ -47,6 +47,7 @@ var ( {referenceBig("ff"), "0xff"}, {referenceBig("112233445566778899aabbccddeeff"), "0x112233445566778899aabbccddeeff"}, {referenceBig("80a7f2c1bcc396c00"), "0x80a7f2c1bcc396c00"}, + {referenceBig("-80a7f2c1bcc396c00"), "-0x80a7f2c1bcc396c00"}, } encodeUint64Tests = []marshalTest{ -- cgit v1.2.3