mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-10 21:11:20 +00:00
Set input to nil for create
This commit is contained in:
parent
36fe11378c
commit
3aa5437a10
@ -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) {
|
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)
|
account = self.env.State().GetStateObject(*self.address)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user