diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-24 22:23:16 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-24 22:23:16 +0800 |
commit | ff9d66e096e853883c269b41cc94b17d4bc95261 (patch) | |
tree | bb22f066b13880d53b40b87c5695568bc799a4f9 /core/vm | |
parent | 23bccbbc587aa22057eb7ae29c5b87d44b7cac7d (diff) | |
download | go-tangerine-ff9d66e096e853883c269b41cc94b17d4bc95261.tar.gz go-tangerine-ff9d66e096e853883c269b41cc94b17d4bc95261.tar.zst go-tangerine-ff9d66e096e853883c269b41cc94b17d4bc95261.zip |
Cleaned up changes
Diffstat (limited to 'core/vm')
-rw-r--r-- | core/vm/environment.go | 3 | ||||
-rw-r--r-- | core/vm/vm.go | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/core/vm/environment.go b/core/vm/environment.go index 6c5202185..72e18c353 100644 --- a/core/vm/environment.go +++ b/core/vm/environment.go @@ -31,7 +31,7 @@ type Environment interface { Call(me ContextRef, addr common.Address, data []byte, gas, price, value *big.Int) ([]byte, error) CallCode(me ContextRef, addr common.Address, data []byte, gas, price, value *big.Int) ([]byte, error) - Create(me ContextRef, addr *common.Address, data []byte, gas, price, value *big.Int) ([]byte, error, ContextRef) + Create(me ContextRef, data []byte, gas, price, value *big.Int) ([]byte, error, ContextRef) } type Account interface { @@ -43,7 +43,6 @@ type Account interface { // generic transfer method func Transfer(from, to Account, amount *big.Int) error { - //fmt.Printf(":::%x::: %v < %v\n", from.Address(), from.Balance(), amount) if from.Balance().Cmp(amount) < 0 { return errors.New("Insufficient balance in account") } diff --git a/core/vm/vm.go b/core/vm/vm.go index 2ece5b928..562689dca 100644 --- a/core/vm/vm.go +++ b/core/vm/vm.go @@ -636,7 +636,7 @@ func (self *Vm) Run(context *Context, callData []byte) (ret []byte, err error) { self.Endl() context.UseGas(context.Gas) - ret, suberr, ref := self.env.Create(context, nil, input, gas, price, value) + ret, suberr, ref := self.env.Create(context, input, gas, price, value) if suberr != nil { stack.push(common.BigFalse) |