mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-03 18:13:48 +00:00
Run contracts
This commit is contained in:
parent
5871dbaf5a
commit
d80f999a21
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue