From 3aa5437a10c71840af41f614d3af4a8d524688c1 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 10 Apr 2015 19:59:01 +0200 Subject: [PATCH] Set input to nil for create --- core/execution.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/execution.go b/core/execution.go index 8134471d1d..9adf98032e 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 }