Check for nil receiver

This commit is contained in:
obscuren 2014-06-16 12:04:56 +02:00
parent 48bca30e61
commit 8b15732c1e

View File

@ -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