diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-11 01:59:01 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-11 01:59:01 +0800 |
commit | 3aa5437a10c71840af41f614d3af4a8d524688c1 (patch) | |
tree | 392300c1fd29caee8b86eb9363e12d0d92ef3a80 /core/execution.go | |
parent | 36fe11378cc3f798741bbad71de65933d6fb33a9 (diff) | |
download | dexon-3aa5437a10c71840af41f614d3af4a8d524688c1.tar.gz dexon-3aa5437a10c71840af41f614d3af4a8d524688c1.tar.zst dexon-3aa5437a10c71840af41f614d3af4a8d524688c1.zip |
Set input to nil for create
Diffstat (limited to 'core/execution.go')
-rw-r--r-- | core/execution.go | 5 |
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 } |