From 318ad3c1e424912ff69c9febc4e08a0137f8803f Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 28 Nov 2016 13:55:56 +0100 Subject: [PATCH] common/hexutil: fix Test{Decode,Unmarshal}Uint64 on 32bit arch (#3363) --- common/hexutil/hexutil_test.go | 2 +- common/hexutil/json_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/hexutil/hexutil_test.go b/common/hexutil/hexutil_test.go index 3f261c9a7..b58b4745c 100644 --- a/common/hexutil/hexutil_test.go +++ b/common/hexutil/hexutil_test.go @@ -105,7 +105,7 @@ var ( {input: `0`, wantErr: ErrMissingPrefix}, {input: `0x`, wantErr: ErrEmptyNumber}, {input: `0x01`, wantErr: ErrLeadingZero}, - {input: `0xfffffffffffffffff`, wantErr: ErrUintRange}, + {input: `0xfffffffffffffffff`, wantErr: ErrUint64Range}, {input: `0xx`, wantErr: ErrSyntax}, {input: `0x1zz01`, wantErr: ErrSyntax}, // valid diff --git a/common/hexutil/json_test.go b/common/hexutil/json_test.go index 16f1b9aa7..2d2e2fc0f 100644 --- a/common/hexutil/json_test.go +++ b/common/hexutil/json_test.go @@ -202,7 +202,7 @@ var unmarshalUint64Tests = []unmarshalTest{ {input: `"0"`, wantErr: ErrMissingPrefix}, {input: `"0x"`, wantErr: ErrEmptyNumber}, {input: `"0x01"`, wantErr: ErrLeadingZero}, - {input: `"0xfffffffffffffffff"`, wantErr: ErrUintRange}, + {input: `"0xfffffffffffffffff"`, wantErr: ErrUint64Range}, {input: `"0xx"`, wantErr: ErrSyntax}, {input: `"0x1zz01"`, wantErr: ErrSyntax},