mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
null ptr fix
This commit is contained in:
parent
3043b233ea
commit
008e91db6a
@ -143,7 +143,6 @@ func (self *StateTransition) TransitionState() (err error) {
|
|||||||
var (
|
var (
|
||||||
tx = self.tx
|
tx = self.tx
|
||||||
sender = self.Sender()
|
sender = self.Sender()
|
||||||
receiver *state.StateObject
|
|
||||||
)
|
)
|
||||||
|
|
||||||
defer self.RefundGas()
|
defer self.RefundGas()
|
||||||
@ -175,7 +174,7 @@ func (self *StateTransition) TransitionState() (err error) {
|
|||||||
if tx.CreatesContract() {
|
if tx.CreatesContract() {
|
||||||
self.rec = MakeContract(tx, self.state)
|
self.rec = MakeContract(tx, self.state)
|
||||||
|
|
||||||
ret, err, ref = vmenv.Create(sender, receiver.Address(), self.tx.Data, self.gas, self.gasPrice, self.value)
|
ret, err, ref = vmenv.Create(sender, self.rec.Address(), self.tx.Data, self.gas, self.gasPrice, self.value)
|
||||||
ref.SetCode(ret)
|
ref.SetCode(ret)
|
||||||
} else {
|
} else {
|
||||||
ret, err = vmenv.Call(self.Sender(), self.Receiver().Address(), self.tx.Data, self.gas, self.gasPrice, self.value)
|
ret, err = vmenv.Call(self.Sender(), self.Receiver().Address(), self.tx.Data, self.gas, self.gasPrice, self.value)
|
||||||
|
Loading…
Reference in New Issue
Block a user