Check for nil receiver
This commit is contained in:
parent
48bca30e61
commit
8b15732c1e
@ -141,8 +141,13 @@ func (self *StateTransition) TransitionState() (err error) {
|
|||||||
// XXX Transactions after this point are considered valid.
|
// XXX Transactions after this point are considered valid.
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
|
if sender != nil {
|
||||||
self.state.UpdateStateObject(sender)
|
self.state.UpdateStateObject(sender)
|
||||||
|
}
|
||||||
|
|
||||||
|
if receiver != nil {
|
||||||
self.state.UpdateStateObject(receiver)
|
self.state.UpdateStateObject(receiver)
|
||||||
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// Increment the nonce for the next transaction
|
// Increment the nonce for the next transaction
|
||||||
|
Loading…
Reference in New Issue
Block a user