aboutsummaryrefslogtreecommitdiffstats
path: root/core/state_transition.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-24 22:15:17 +0800
committerobscuren <geffobscura@gmail.com>2015-03-24 22:15:17 +0800
commit23bccbbc587aa22057eb7ae29c5b87d44b7cac7d (patch)
tree70e03dcff049ebbca32dc34c53881cf6b9e20a7c /core/state_transition.go
parentbbe795455a13c57dbba64c1082b618e791af46ce (diff)
downloaddexon-23bccbbc587aa22057eb7ae29c5b87d44b7cac7d.tar.gz
dexon-23bccbbc587aa22057eb7ae29c5b87d44b7cac7d.tar.zst
dexon-23bccbbc587aa22057eb7ae29c5b87d44b7cac7d.zip
Modified according to poc 9 changes
* Refund of value
Diffstat (limited to 'core/state_transition.go')
-rw-r--r--core/state_transition.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/state_transition.go b/core/state_transition.go
index d46838d02..6312dee88 100644
--- a/core/state_transition.go
+++ b/core/state_transition.go
@@ -196,7 +196,6 @@ func (self *StateTransition) transitionState() (ret []byte, usedGas *big.Int, er
}
// Increment the nonce for the next transaction
- self.state.SetNonce(sender.Address(), sender.Nonce()+1)
vmenv := self.env
var ref vm.ContextRef
@@ -214,6 +213,7 @@ func (self *StateTransition) transitionState() (ret []byte, usedGas *big.Int, er
}
}
} else {
+ self.state.SetNonce(sender.Address(), sender.Nonce()+1)
ret, err = vmenv.Call(self.From(), self.To().Address(), self.msg.Data(), self.gas, self.gasPrice, self.value)
}