Skip to content

Commit e603c74

Browse files
0xmountaintopDergarcon
authored andcommitted
eth: minor change of config-accessor (ethereum#28782)
eth: refactor `GetVM`
1 parent 1d834ff commit e603c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/api_backend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func (b *EthAPIBackend) GetEVM(ctx context.Context, msg *core.Message, state *st
260260
} else {
261261
context = core.NewEVMBlockContext(header, b.eth.BlockChain(), nil)
262262
}
263-
return vm.NewEVM(context, txContext, state, b.eth.blockchain.Config(), *vmConfig)
263+
return vm.NewEVM(context, txContext, state, b.ChainConfig(), *vmConfig)
264264
}
265265

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

0 commit comments

Comments
 (0)