eth: minor change of config-accessor (#28782)

eth: refactor `GetVM`
This commit is contained in:
HAOYUatHZ
2024-01-12 08:06:22 +01:00
committed by GitHub
parent 5c2de7fcbe
commit 6e235c0833
+1 -1
View File
@@ -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 {