diff --git a/cmd/rpcdaemon/commands/eth_call.go b/cmd/rpcdaemon/commands/eth_call.go index d72903cc286..4b069fb173c 100644 --- a/cmd/rpcdaemon/commands/eth_call.go +++ b/cmd/rpcdaemon/commands/eth_call.go @@ -385,6 +385,9 @@ func (api *APIImpl) GetProof(ctx context.Context, address libcommon.Address, sto if err != nil { return nil, err } + if a == nil { + return nil, nil + } pr, err := trie.NewProofRetainer(address, a, storageKeys, rl) if err != nil { return nil, err diff --git a/turbo/trie/trie_root.go b/turbo/trie/trie_root.go index 996ef935cb4..187befbc25c 100644 --- a/turbo/trie/trie_root.go +++ b/turbo/trie/trie_root.go @@ -341,8 +341,6 @@ func (r *RootHashAggregator) Receive(itemType StreamItem, //} // - fmt.Printf("1: %d, %x, %x, %x\n", itemType, accountKey, storageKey, hash) - switch itemType { case StorageStreamItem: if len(r.currAccK) == 0 {