Skip to content

Commit

Permalink
eth: minor change of config-accessor (ethereum#28782)
Browse files Browse the repository at this point in the history
eth: refactor `GetVM`
  • Loading branch information
0xmountaintop authored Jan 12, 2024
1 parent 5c2de7f commit 6e235c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/api_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (b *EthAPIBackend) GetEVM(ctx context.Context, msg *core.Message, state *st
} else {
context = core.NewEVMBlockContext(header, b.eth.BlockChain(), nil)
}
return vm.NewEVM(context, txContext, state, b.eth.blockchain.Config(), *vmConfig)
return vm.NewEVM(context, txContext, state, b.ChainConfig(), *vmConfig)
}

func (b *EthAPIBackend) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription {
Expand Down

0 comments on commit 6e235c0

Please sign in to comment.