aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-16 18:04:56 +0800
committerobscuren <geffobscura@gmail.com>2014-06-16 18:04:56 +0800
commit8b15732c1e8a1a666ae7469bc43d989918ce754a (patch)
treef08b0fa5a63c32ea98ed90a8d70a67701908adb8 /ethchain
parent48bca30e61f869a00111abe5d818ac7379854616 (diff)
downloaddexon-8b15732c1e8a1a666ae7469bc43d989918ce754a.tar.gz
dexon-8b15732c1e8a1a666ae7469bc43d989918ce754a.tar.zst
dexon-8b15732c1e8a1a666ae7469bc43d989918ce754a.zip
Check for nil receiver
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/state_transition.go9
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