core/vm: evm fix panic (#23047)

* core/vm: evm fix panic

* core/vm/runtime: default to params.initialbasefee
This commit is contained in:
Martin Holst Swende
2021-06-16 08:53:27 +02:00
committed by GitHub
parent ae315ef7a1
commit 080b6ebe91
2 changed files with 6 additions and 1 deletions

View File

@ -35,6 +35,7 @@ func NewEnv(cfg *Config) *vm.EVM {
Time: cfg.Time,
Difficulty: cfg.Difficulty,
GasLimit: cfg.GasLimit,
BaseFee: cfg.BaseFee,
}
return vm.NewEVM(blockContext, txContext, cfg.State, cfg.ChainConfig, cfg.EVMConfig)