aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-17 20:24:12 +0800
committerobscuren <geffobscura@gmail.com>2015-03-17 20:24:25 +0800
commit0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa (patch)
tree9d4b05ed91f007c0831033c35f80dff691a4c7e7 /vm
parentff55c6f5badda7ef11c38ef5d94b71420b14817c (diff)
downloaddexon-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar
dexon-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar.gz
dexon-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar.bz2
dexon-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar.lz
dexon-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar.xz
dexon-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.tar.zst
dexon-0fa7859b94ddb0a35a6fbdb2c29139b0baaa2bfa.zip
Fixed VM & Tests w/ conversion
Diffstat (limited to 'vm')
-rw-r--r--vm/environment.go2
-rw-r--r--vm/vm.go2
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 {
diff --git a/vm/vm.go b/vm/vm.go
index 706a3e108..49e8cca98 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -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)