aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/closure.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-18 19:41:07 +0800
committerobscuren <geffobscura@gmail.com>2014-04-18 19:41:07 +0800
commita96c8c8af969665cc0c357eef81d43b5b7285dfe (patch)
tree6578941fc1b32f848e65ef763a0ce7315ec6d850 /ethchain/closure.go
parentc5729d7ecc564f8eff6df565173a4f5cc6c43cb0 (diff)
downloadgo-tangerine-a96c8c8af969665cc0c357eef81d43b5b7285dfe.tar.gz
go-tangerine-a96c8c8af969665cc0c357eef81d43b5b7285dfe.tar.zst
go-tangerine-a96c8c8af969665cc0c357eef81d43b5b7285dfe.zip
Added proper gas handling
Diffstat (limited to 'ethchain/closure.go')
-rw-r--r--ethchain/closure.go5
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