Skip to content

Commit

Permalink
Compare to ERROR.REVERT directly instead of the ERROR.REVERT string v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
holgerd77 committed Sep 22, 2017
1 parent ce11c83 commit 7498eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opFns.js
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ function makeCall (runState, callOptions, localOpts, cb) {
runState.gasLeft.isub(results.gasUsed)

// save results to memory
if (results.vm.return && (!results.vm.exceptionError || results.vm.exceptionError === 'revert')) {
if (results.vm.return && (!results.vm.exceptionError || results.vm.exceptionError === ERROR.REVERT)) {
memStore(runState, localOpts.outOffset, results.vm.return, 0, localOpts.outLength, false)

switch (runState.opName) {
Expand Down

0 comments on commit 7498eb4

Please sign in to comment.