diff options
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) |