diff options
author | obscuren <geffobscura@gmail.com> | 2014-06-15 06:11:06 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-06-15 06:11:06 +0800 |
commit | d80f999a215b74e23d21f3548486f996c3eb028d (patch) | |
tree | ef7e924d491fc2933e52eb7ba0b96602fa69b25a /ethchain | |
parent | 5871dbaf5a832a4fd34bdb22cf479d6b0b4da9fb (diff) | |
download | dexon-d80f999a215b74e23d21f3548486f996c3eb028d.tar dexon-d80f999a215b74e23d21f3548486f996c3eb028d.tar.gz dexon-d80f999a215b74e23d21f3548486f996c3eb028d.tar.bz2 dexon-d80f999a215b74e23d21f3548486f996c3eb028d.tar.lz dexon-d80f999a215b74e23d21f3548486f996c3eb028d.tar.xz dexon-d80f999a215b74e23d21f3548486f996c3eb028d.tar.zst dexon-d80f999a215b74e23d21f3548486f996c3eb028d.zip |
Run contracts
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/state_transition.go | 7 |
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 |