diff --git a/trie/trie_reader.go b/trie/trie_reader.go index 42bc4316fe..dcf46c9f31 100644 --- a/trie/trie_reader.go +++ b/trie/trie_reader.go @@ -89,6 +89,6 @@ func (l *MerkleLoader) OpenTrie(root common.Hash) (triestate.Trie, error) { } // OpenStorageTrie opens the storage trie of an account. -func (l *MerkleLoader) OpenStorageTrie(stateRoot common.Hash, addrHash, root common.Hash) (triestate.Trie, error) { +func (l *MerkleLoader) OpenStorageTrie(stateRoot, addrHash, root common.Hash) (triestate.Trie, error) { return New(StorageTrieID(stateRoot, addrHash, root), l.db) } diff --git a/trie/triestate/state.go b/trie/triestate/state.go index 9db9211e8c..8c5bd3ac53 100644 --- a/trie/triestate/state.go +++ b/trie/triestate/state.go @@ -51,7 +51,7 @@ type TrieLoader interface { OpenTrie(root common.Hash) (Trie, error) // OpenStorageTrie opens the storage trie of an account. - OpenStorageTrie(stateRoot common.Hash, addrHash, root common.Hash) (Trie, error) + OpenStorageTrie(stateRoot, addrHash, root common.Hash) (Trie, error) } // Set represents a collection of mutated states during a state transition.