aboutsummaryrefslogtreecommitdiffstats
path: root/eth/api_test.go
diff options
context:
space:
mode:
authorBenoit Verkindt <benoit.verkindt@gmail.com>2017-12-06 23:42:16 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-12-06 23:42:16 +0800
commiteab2201f808bbe1ef08a504f86cf41dd03aa979c (patch)
treefe56296ef420ad1b7061f05514caf155b35dcd31 /eth/api_test.go
parente85b68ef53e80eb66c7ab394c57e9eb146a60b91 (diff)
downloaddexon-eab2201f808bbe1ef08a504f86cf41dd03aa979c.tar.gz
dexon-eab2201f808bbe1ef08a504f86cf41dd03aa979c.tar.zst
dexon-eab2201f808bbe1ef08a504f86cf41dd03aa979c.zip
eth: return rlp-decoded values from debug_storageRangeAt (#15476)
Fixes #15196
Diffstat (limited to 'eth/api_test.go')
-rw-r--r--eth/api_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/eth/api_test.go b/eth/api_test.go
index 49ce38688..248bc3ab6 100644
--- a/eth/api_test.go
+++ b/eth/api_test.go
@@ -79,7 +79,10 @@ func TestStorageRangeAt(t *testing.T) {
},
}
for _, test := range tests {
- result := storageRangeAt(state.StorageTrie(addr), test.start, test.limit)
+ result, err := storageRangeAt(state.StorageTrie(addr), test.start, test.limit)
+ if err != nil {
+ t.Error(err)
+ }
if !reflect.DeepEqual(result, test.want) {
t.Fatalf("wrong result for range 0x%x.., limit %d:\ngot %s\nwant %s",
test.start, test.limit, dumper.Sdump(result), dumper.Sdump(&test.want))