mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix: make sure AccessWitness isn't nil when calling RPC methods (#287)
This commit is contained in:
parent
328e180429
commit
49fdfff681
1 changed files with 5 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue