aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-28 18:39:34 +0800
committerobscuren <geffobscura@gmail.com>2014-05-28 18:39:34 +0800
commit6e98e5709a68b1a84e9c3b391eab4a3546c4225d (patch)
treedb78e8cc76c7c2496e822ea9ec00d07e5b1662e8 /ethchain
parent9988b1a04710e03ce7ed4b23393e2e90f06889f9 (diff)
downloaddexon-6e98e5709a68b1a84e9c3b391eab4a3546c4225d.tar.gz
dexon-6e98e5709a68b1a84e9c3b391eab4a3546c4225d.tar.zst
dexon-6e98e5709a68b1a84e9c3b391eab4a3546c4225d.zip
Set initial used gas
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/closure.go1
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
}