aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi
diff options
context:
space:
mode:
authorrjl493456442 <garyrong0905@gmail.com>2017-08-21 08:47:15 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-08-22 23:35:17 +0800
commit28aea46ac08579f3ecd1c35620915b8e1bfcc8b0 (patch)
treea2d00f77c624c5c255af1d05873eb3c5b0f17591 /accounts/abi
parent2fd5ba6bd41380cf0e21d3ec0ca4bbc4aa7b6c34 (diff)
downloadgo-tangerine-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.tar
go-tangerine-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.tar.gz
go-tangerine-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.tar.bz2
go-tangerine-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.tar.lz
go-tangerine-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.tar.xz
go-tangerine-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.tar.zst
go-tangerine-28aea46ac08579f3ecd1c35620915b8e1bfcc8b0.zip
core: implement Metropolis EIP 658, receipt status byte
Diffstat (limited to 'accounts/abi')
-rw-r--r--accounts/abi/bind/backends/simulated.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go
index e0ee06a0a..88fb3331e 100644
--- a/accounts/abi/bind/backends/simulated.go
+++ b/accounts/abi/bind/backends/simulated.go
@@ -253,7 +253,8 @@ func (b *SimulatedBackend) callContract(ctx context.Context, call ethereum.CallM
// about the transaction and calling mechanisms.
vmenv := vm.NewEVM(evmContext, statedb, b.config, vm.Config{})
gaspool := new(core.GasPool).AddGas(math.MaxBig256)
- ret, gasUsed, _, err := core.NewStateTransition(vmenv, msg, gaspool).TransitionDb()
+ // TODO utilize returned failed flag to help gas estimation.
+ ret, gasUsed, _, _, err := core.NewStateTransition(vmenv, msg, gaspool).TransitionDb()
return ret, gasUsed, err
}