diff options
author | obscuren <geffobscura@gmail.com> | 2014-06-16 18:04:56 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-06-16 18:04:56 +0800 |
commit | 8b15732c1e8a1a666ae7469bc43d989918ce754a (patch) | |
tree | f08b0fa5a63c32ea98ed90a8d70a67701908adb8 /ethchain | |
parent | 48bca30e61f869a00111abe5d818ac7379854616 (diff) | |
download | dexon-8b15732c1e8a1a666ae7469bc43d989918ce754a.tar.gz dexon-8b15732c1e8a1a666ae7469bc43d989918ce754a.tar.zst dexon-8b15732c1e8a1a666ae7469bc43d989918ce754a.zip |
Check for nil receiver
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/state_transition.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ethchain/state_transition.go b/ethchain/state_transition.go index 5beef61b4..c88f4727f 100644 --- a/ethchain/state_transition.go +++ b/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 |