Commit 68fba4b7 authored by obscuren's avatar obscuren

Fixed state reset on err

parent 239a5d32
......@@ -176,8 +176,6 @@ func (self *StateTransition) TransitionState() (err error) {
return
}
snapshot := self.state.Copy()
receiver = self.Receiver()
// If the receiver is nil it's a contract (\0*32).
......@@ -194,6 +192,8 @@ func (self *StateTransition) TransitionState() (err error) {
return
}
snapshot := self.state.Copy()
// Process the init code and create 'valid' contract
if IsContractAddr(self.receiver) {
// Evaluate the initialization script
......
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