diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-18 19:41:07 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-18 19:41:07 +0800 |
commit | a96c8c8af969665cc0c357eef81d43b5b7285dfe (patch) | |
tree | 6578941fc1b32f848e65ef763a0ce7315ec6d850 /ethchain/closure.go | |
parent | c5729d7ecc564f8eff6df565173a4f5cc6c43cb0 (diff) | |
download | dexon-a96c8c8af969665cc0c357eef81d43b5b7285dfe.tar dexon-a96c8c8af969665cc0c357eef81d43b5b7285dfe.tar.gz dexon-a96c8c8af969665cc0c357eef81d43b5b7285dfe.tar.bz2 dexon-a96c8c8af969665cc0c357eef81d43b5b7285dfe.tar.lz dexon-a96c8c8af969665cc0c357eef81d43b5b7285dfe.tar.xz dexon-a96c8c8af969665cc0c357eef81d43b5b7285dfe.tar.zst dexon-a96c8c8af969665cc0c357eef81d43b5b7285dfe.zip |
Added proper gas handling
Diffstat (limited to 'ethchain/closure.go')
-rw-r--r-- | ethchain/closure.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ethchain/closure.go b/ethchain/closure.go index 0762e8f49..5c508179e 100644 --- a/ethchain/closure.go +++ b/ethchain/closure.go @@ -27,14 +27,15 @@ type Closure struct { State *State Gas *big.Int + Price *big.Int Value *big.Int Args []byte } // Create a new closure for the given data items -func NewClosure(callee Callee, object Reference, script []byte, state *State, gas, val *big.Int) *Closure { - return &Closure{callee, object, script, state, gas, val, nil} +func NewClosure(callee Callee, object Reference, script []byte, state *State, gas, price, val *big.Int) *Closure { + return &Closure{callee, object, script, state, gas, price, val, nil} } // Retuns the x element in data slice |