mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-21 15:29:27 +00:00
Check for nil receiver
This commit is contained in:
parent
48bca30e61
commit
8b15732c1e
1 changed files with 7 additions and 2 deletions
|
|
@ -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() {
|
||||||
self.state.UpdateStateObject(sender)
|
if sender != nil {
|
||||||
self.state.UpdateStateObject(receiver)
|
self.state.UpdateStateObject(sender)
|
||||||
|
}
|
||||||
|
|
||||||
|
if receiver != nil {
|
||||||
|
self.state.UpdateStateObject(receiver)
|
||||||
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// Increment the nonce for the next transaction
|
// Increment the nonce for the next transaction
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue