aboutsummaryrefslogtreecommitdiffstats
path: root/eth/api_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'eth/api_test.go')
-rw-r--r--eth/api_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/eth/api_test.go b/eth/api_test.go
index 900a82bb6..47b062a40 100644
--- a/eth/api_test.go
+++ b/eth/api_test.go
@@ -31,8 +31,7 @@ var dumper = spew.ConfigState{Indent: " "}
func TestStorageRangeAt(t *testing.T) {
// Create a state where account 0x010000... has a few storage entries.
var (
- db, _ = ethdb.NewMemDatabase()
- state, _ = state.New(common.Hash{}, state.NewDatabase(db))
+ state, _ = state.New(common.Hash{}, state.NewDatabase(ethdb.NewMemDatabase()))
addr = common.Address{0x01}
keys = []common.Hash{ // hashes of Keys of storage
common.HexToHash("340dd630ad21bf010b4e676dbfa9ba9a02175262d1fa356232cfde6cb5b47ef2"),