Commit 3aa5437a authored by obscuren's avatar obscuren

Set input to nil for create

parent 36fe1137
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment