common/hexutil: ensure negative big.Int is encoded sensibly

Restricting encoding is silly.
This commit is contained in:
Felix Lange
2017-02-26 19:40:33 +01:00
parent d304da3803
commit 280f08be84
3 changed files with 5 additions and 16 deletions

View File

@ -47,6 +47,7 @@ var (
{referenceBig("ff"), "0xff"},
{referenceBig("112233445566778899aabbccddeeff"), "0x112233445566778899aabbccddeeff"},
{referenceBig("80a7f2c1bcc396c00"), "0x80a7f2c1bcc396c00"},
{referenceBig("-80a7f2c1bcc396c00"), "-0x80a7f2c1bcc396c00"},
}
encodeUint64Tests = []marshalTest{