diff options
-rw-r--r-- | accounts/abi/bind/backends/simulated.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go index 213a4f1a7..6cdb9a0cc 100644 --- a/accounts/abi/bind/backends/simulated.go +++ b/accounts/abi/bind/backends/simulated.go @@ -152,7 +152,7 @@ func (b *SimulatedBackend) EstimateGasLimit(sender common.Address, contract *com vmenv := core.NewEnv(statedb, chainConfig, b.blockchain, msg, block.Header(), vm.Config{}) gaspool := new(core.GasPool).AddGas(common.MaxBig) - _, gas, err := core.ApplyMessage(vmenv, msg, gaspool) + _, gas, _, err := core.NewStateTransition(vmenv, msg, gaspool).TransitionDb() return gas, err } |