aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/closure.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-08 20:20:45 +0800
committerobscuren <geffobscura@gmail.com>2014-05-08 20:20:45 +0800
commitf0440e85dc306f270666e3aee1fe419b684a2ae8 (patch)
tree48bdfe63832723d5007536c73452a98859941ed9 /ethchain/closure.go
parent554f4f6f7d8b8bc5332d42631ec9de0d7015eccf (diff)
downloadgo-tangerine-f0440e85dc306f270666e3aee1fe419b684a2ae8.tar
go-tangerine-f0440e85dc306f270666e3aee1fe419b684a2ae8.tar.gz
go-tangerine-f0440e85dc306f270666e3aee1fe419b684a2ae8.tar.bz2
go-tangerine-f0440e85dc306f270666e3aee1fe419b684a2ae8.tar.lz
go-tangerine-f0440e85dc306f270666e3aee1fe419b684a2ae8.tar.xz
go-tangerine-f0440e85dc306f270666e3aee1fe419b684a2ae8.tar.zst
go-tangerine-f0440e85dc306f270666e3aee1fe419b684a2ae8.zip
Removed value from closure.
Diffstat (limited to 'ethchain/closure.go')
-rw-r--r--ethchain/closure.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/ethchain/closure.go b/ethchain/closure.go
index 7e911ad99..0f1e386ae 100644
--- a/ethchain/closure.go
+++ b/ethchain/closure.go
@@ -24,20 +24,18 @@ type Closure struct {
Gas *big.Int
Price *big.Int
- Value *big.Int
Args []byte
}
// Create a new closure for the given data items
-func NewClosure(callee, object *StateObject, script []byte, state *State, gas, price, val *big.Int) *Closure {
+func NewClosure(callee, object *StateObject, script []byte, state *State, gas, price *big.Int) *Closure {
c := &Closure{callee: callee, object: object, Script: script, State: state, Args: nil}
// In most cases gas, price and value are pointers to transaction objects
// 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.Value = new(big.Int).Set(val)
return c
}