trie : remove duplicated params type

This commit is contained in:
ucwong 2024-05-18 17:31:24 +08:00
parent 7ed52c949e
commit 61db247a1c
2 changed files with 2 additions and 2 deletions

View file

@ -89,6 +89,6 @@ func (l *MerkleLoader) OpenTrie(root common.Hash) (triestate.Trie, error) {
} }
// OpenStorageTrie opens the storage trie of an account. // 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) return New(StorageTrieID(stateRoot, addrHash, root), l.db)
} }

View file

@ -51,7 +51,7 @@ type TrieLoader interface {
OpenTrie(root common.Hash) (Trie, error) OpenTrie(root common.Hash) (Trie, error)
// OpenStorageTrie opens the storage trie of an account. // 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. // Set represents a collection of mutated states during a state transition.