aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-11 01:59:01 +0800
committerobscuren <geffobscura@gmail.com>2015-04-11 01:59:01 +0800
commit3aa5437a10c71840af41f614d3af4a8d524688c1 (patch)
tree392300c1fd29caee8b86eb9363e12d0d92ef3a80 /core
parent36fe11378cc3f798741bbad71de65933d6fb33a9 (diff)
downloaddexon-3aa5437a10c71840af41f614d3af4a8d524688c1.tar
dexon-3aa5437a10c71840af41f614d3af4a8d524688c1.tar.gz
dexon-3aa5437a10c71840af41f614d3af4a8d524688c1.tar.bz2
dexon-3aa5437a10c71840af41f614d3af4a8d524688c1.tar.lz
dexon-3aa5437a10c71840af41f614d3af4a8d524688c1.tar.xz
dexon-3aa5437a10c71840af41f614d3af4a8d524688c1.tar.zst
dexon-3aa5437a10c71840af41f614d3af4a8d524688c1.zip
Set input to nil for create
Diffstat (limited to 'core')
-rw-r--r--core/execution.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/execution.go b/core/execution.go
index 8134471d1..9adf98032 100644
--- a/core/execution.go
+++ b/core/execution.go
@@ -34,7 +34,10 @@ func (self *Execution) Call(codeAddr common.Address, caller vm.ContextRef) ([]by
}
func (self *Execution) Create(caller vm.ContextRef) (ret []byte, err error, account *state.StateObject) {
- ret, err = self.exec(nil, self.input, caller)
+ // Input must be nil for create
+ code := self.input
+ self.input = nil
+ ret, err = self.exec(nil, code, caller)
account = self.env.State().GetStateObject(*self.address)
return
}