Skip to content

Commit

Permalink
fix eth proof trie initilization
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Oct 21, 2024
1 parent f06e859 commit 374d07e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/proofs/ethereum/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ func (t *Trie) GenerateProof(txIndex int) (*Proof, error) {
// NewTrie builds a trie from a DerivableList. The DerivableList must be types.Transactions
// or types.Receipts.
func NewTrie(list types.DerivableList) Trie {
hasher := new(trie.Trie)
hasher.Reset()
hasher := trie.NewEmpty(nil)

valueBuf := encodeBufferPool.Get().(*bytes.Buffer)
defer encodeBufferPool.Put(valueBuf)
Expand Down

0 comments on commit 374d07e

Please sign in to comment.