From ced8041f72d2baf5cc0f958bfdde4395e9ae8a83 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Mon, 24 Apr 2023 18:32:44 +0800 Subject: [PATCH] fix package oops --- trie_by_cid/trie/database_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trie_by_cid/trie/database_test.go b/trie_by_cid/trie/database_test.go index fce88db..599cc58 100644 --- a/trie_by_cid/trie/database_test.go +++ b/trie_by_cid/trie/database_test.go @@ -20,13 +20,15 @@ import ( "testing" "github.com/ethereum/go-ethereum/ethdb/memorydb" + + "github.com/cerc-io/ipld-eth-statedb/trie_by_cid/trie" ) // Tests that the trie database returns a missing trie node error if attempting // to retrieve the meta root. func TestDatabaseMetarootFetch(t *testing.T) { - db := NewDatabase(memorydb.New()) - if _, err := db.Node(CidBytes(nil)); err == nil { + db := trie.NewDatabase(memorydb.New()) + if _, err := db.Node(trie.CidBytes(nil)); err == nil { t.Fatalf("metaroot retrieval succeeded") } }