Commit 8b15732c authored by obscuren's avatar obscuren

Check for nil receiver

parent 48bca30e
...@@ -141,8 +141,13 @@ func (self *StateTransition) TransitionState() (err error) { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment