diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-17 20:24:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-17 20:24:25 +0800 |
commit | 0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa (patch) | |
tree | 9d4b05ed91f007c0831033c35f80dff691a4c7e7 /vm | |
parent | ff55c6f5badda7ef11c38ef5d94b71420b14817c (diff) | |
download | dexon-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar.gz dexon-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar.zst dexon-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.zip |
Fixed VM & Tests w/ conversion
Diffstat (limited to 'vm')
-rw-r--r-- | vm/environment.go | 2 | ||||
-rw-r--r-- | vm/vm.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vm/environment.go b/vm/environment.go index 6976d6749..fdce526ee 100644 --- a/vm/environment.go +++ b/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, data []byte, gas, price, value *big.Int) ([]byte, error, ContextRef) + Create(me ContextRef, addr *common.Address, data []byte, gas, price, value *big.Int) ([]byte, error, ContextRef) } type Account interface { @@ -641,7 +641,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, input, gas, price, value) + ret, suberr, ref := self.env.Create(context, nil, input, gas, price, value) if suberr != nil { stack.push(common.BigFalse) |