aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-04-15 23:50:50 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-04-15 23:50:50 +0800
commit16d10aae0c67e79179cb2f7b51c593420b6b59f6 (patch)
tree17c5aebbd58d674c327f7a14bf9668ecf0ea0834
parent6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea (diff)
parente581f2690ad61a9f74ee14a04ae9746d1a001087 (diff)
downloadgo-tangerine-16d10aae0c67e79179cb2f7b51c593420b6b59f6.tar
go-tangerine-16d10aae0c67e79179cb2f7b51c593420b6b59f6.tar.gz
go-tangerine-16d10aae0c67e79179cb2f7b51c593420b6b59f6.tar.bz2
go-tangerine-16d10aae0c67e79179cb2f7b51c593420b6b59f6.tar.lz
go-tangerine-16d10aae0c67e79179cb2f7b51c593420b6b59f6.tar.xz
go-tangerine-16d10aae0c67e79179cb2f7b51c593420b6b59f6.tar.zst
go-tangerine-16d10aae0c67e79179cb2f7b51c593420b6b59f6.zip
Merge pull request #2461 from karalabe/fix-simulator-estimates
accounts/abi/bind/backends: estimate needed gas, not used
-rw-r--r--accounts/abi/bind/backends/simulated.go2
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
}