aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-05-21 19:49:23 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-05-21 19:49:23 +0800
commit90b672f1af50944e136bdd6e617fad90f59fe6fe (patch)
treecf5abb47fc9125c4a7e229af2a6898497a1ec74e /core
parentbf7dcfce368692e1dc605c691504646eef14a645 (diff)
parent6a72cd45e20ad220f27d9ead3120e98020802022 (diff)
downloadgo-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.go6
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
}