diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-21 19:49:23 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-21 19:49:23 +0800 |
commit | 90b672f1af50944e136bdd6e617fad90f59fe6fe (patch) | |
tree | cf5abb47fc9125c4a7e229af2a6898497a1ec74e /core | |
parent | bf7dcfce368692e1dc605c691504646eef14a645 (diff) | |
parent | 6a72cd45e20ad220f27d9ead3120e98020802022 (diff) | |
download | go-tangerine-90b672f1af50944e136bdd6e617fad90f59fe6fe.tar.gz go-tangerine-90b672f1af50944e136bdd6e617fad90f59fe6fe.tar.zst go-tangerine-90b672f1af50944e136bdd6e617fad90f59fe6fe.zip |
Merge pull request #1062 from Gustav-Simonsson/tests_updates
Tests updates
Diffstat (limited to 'core')
-rw-r--r-- | core/execution.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/execution.go b/core/execution.go index 9adf98032..522c90449 100644 --- a/core/execution.go +++ b/core/execution.go @@ -38,6 +38,12 @@ func (self *Execution) Create(caller vm.ContextRef) (ret []byte, err error, acco code := self.input self.input = nil ret, err = self.exec(nil, code, caller) + // Here we get an error if we run into maximum stack depth, + // See: https://github.com/ethereum/yellowpaper/pull/131 + // and YP definitions for CREATE instruction + if err != nil { + return nil, err, nil + } account = self.env.State().GetStateObject(*self.address) return } |