Skip to content

Commit

Permalink
fix: make sure AccessWitness isn't nil when calling RPC methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Oct 10, 2023
1 parent 0d935b4 commit 84d0cc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,11 @@ func doCall(ctx context.Context, b Backend, args TransactionArgs, state *state.S
}
evm, vmError := b.GetEVM(ctx, msg, state, header, &vm.Config{NoBaseFee: true}, &blockCtx)

// Set witness if trie is verkle
if state.Database().TrieDB().IsVerkle() {
state.SetWitness(state.NewAccessWitness())
}

// Wait for the context to be done and cancel the evm. Even if the
// EVM has finished, cancelling may be done (repeatedly)
go func() {
Expand Down

0 comments on commit 84d0cc3

Please sign in to comment.