diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-28 18:39:34 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-28 18:39:34 +0800 |
commit | 6e98e5709a68b1a84e9c3b391eab4a3546c4225d (patch) | |
tree | db78e8cc76c7c2496e822ea9ec00d07e5b1662e8 /ethchain | |
parent | 9988b1a04710e03ce7ed4b23393e2e90f06889f9 (diff) | |
download | dexon-6e98e5709a68b1a84e9c3b391eab4a3546c4225d.tar.gz dexon-6e98e5709a68b1a84e9c3b391eab4a3546c4225d.tar.zst dexon-6e98e5709a68b1a84e9c3b391eab4a3546c4225d.zip |
Set initial used gas
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/closure.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ethchain/closure.go b/ethchain/closure.go index f2b46e461..01fd5d794 100644 --- a/ethchain/closure.go +++ b/ethchain/closure.go @@ -35,6 +35,7 @@ func NewClosure(callee, object *StateObject, script []byte, state *State, gas, p // and we don't want the transaction's values to change. c.Gas = new(big.Int).Set(gas) c.Price = new(big.Int).Set(price) + c.UsedGas = new(big.Int) return c } |