aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_transition.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-15 06:11:06 +0800
committerobscuren <geffobscura@gmail.com>2014-06-15 06:11:06 +0800
commitd80f999a215b74e23d21f3548486f996c3eb028d (patch)
treeef7e924d491fc2933e52eb7ba0b96602fa69b25a /ethchain/state_transition.go
parent5871dbaf5a832a4fd34bdb22cf479d6b0b4da9fb (diff)
downloadgo-tangerine-d80f999a215b74e23d21f3548486f996c3eb028d.tar
go-tangerine-d80f999a215b74e23d21f3548486f996c3eb028d.tar.gz
go-tangerine-d80f999a215b74e23d21f3548486f996c3eb028d.tar.bz2
go-tangerine-d80f999a215b74e23d21f3548486f996c3eb028d.tar.lz
go-tangerine-d80f999a215b74e23d21f3548486f996c3eb028d.tar.xz
go-tangerine-d80f999a215b74e23d21f3548486f996c3eb028d.tar.zst
go-tangerine-d80f999a215b74e23d21f3548486f996c3eb028d.zip
Run contracts
Diffstat (limited to 'ethchain/state_transition.go')
-rw-r--r--ethchain/state_transition.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/ethchain/state_transition.go b/ethchain/state_transition.go
index 5ded0cddd..2e2a51f72 100644
--- a/ethchain/state_transition.go
+++ b/ethchain/state_transition.go
@@ -188,6 +188,13 @@ func (self *StateTransition) TransitionState() (err error) {
}
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