Set initial used gas

This commit is contained in:
obscuren 2014-05-28 12:39:34 +02:00
parent 9988b1a047
commit 6e98e5709a

View File

@ -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
}