Commit d80f999a authored by obscuren's avatar obscuren

Run contracts

parent 5871dbaf
...@@ -188,6 +188,13 @@ func (self *StateTransition) TransitionState() (err error) { ...@@ -188,6 +188,13 @@ func (self *StateTransition) TransitionState() (err error) {
} }
receiver.script = code receiver.script = code
} else {
if len(receiver.Script()) > 0 {
_, err := self.Eval(receiver.Script(), receiver)
if err != nil {
return fmt.Errorf("Error during code execution %v", err)
}
}
} }
// Return remaining gas // Return remaining gas
......
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