Skip to content

Commit

Permalink
Handle errors in CALL
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Aug 20, 2017
1 parent 6d90d92 commit 876c2d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/opFns.js
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,8 @@ function makeCall (runState, callOptions, localOpts, cb) {

// update stateRoot on current contract
runState.stateManager.getAccount(runState.address, function (err, account) {
if (err) return cb(err)

runState.contract = account
// push the created address to the stack
if (results.createdAddress) {
Expand Down

0 comments on commit 876c2d1

Please sign in to comment.