Check for nil receiver

pull/150/head
obscuren 11 years ago
parent 48bca30e61
commit 8b15732c1e
  1. 9
      ethchain/state_transition.go

@ -141,8 +141,13 @@ func (self *StateTransition) TransitionState() (err error) {
// XXX Transactions after this point are considered valid.
defer func() {
self.state.UpdateStateObject(sender)
self.state.UpdateStateObject(receiver)
if sender != nil {
self.state.UpdateStateObject(sender)
}
if receiver != nil {
self.state.UpdateStateObject(receiver)
}
}()
// Increment the nonce for the next transaction

Loading…
Cancel
Save