good morning!!!!

Skip to content
Snippets Groups Projects
Commit 1d51cada authored by Gustav Simonsson's avatar Gustav Simonsson
Browse files

Handle call depth exception for CREATE

parent 36419def
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment