mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-07 07:28:40 +00:00
Set initial used gas
This commit is contained in:
parent
9988b1a047
commit
6e98e5709a
1 changed files with 1 additions and 0 deletions
|
|
@ -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.
|
// and we don't want the transaction's values to change.
|
||||||
c.Gas = new(big.Int).Set(gas)
|
c.Gas = new(big.Int).Set(gas)
|
||||||
c.Price = new(big.Int).Set(price)
|
c.Price = new(big.Int).Set(price)
|
||||||
|
c.UsedGas = new(big.Int)
|
||||||
|
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue