Merge pull request #4278 from ethereum/yann300-patch-51

set default value for returnData
pull/5370/head
yann300 1 year ago committed by GitHub
commit 0043ac4a0c
  1. 2
      libs/remix-lib/src/execution/txExecution.ts

@ -89,7 +89,7 @@ export function checkError (execResult, compiledContracts) {
msg = '\tThe transaction ran out of gas. Please increase the Gas Limit.\n'
ret.error = true
} else if (exceptionError === errorCode.REVERT || exceptionError === 'execution reverted') {
const returnData = execResult.errorData
const returnData = execResult.errorData || '0x00000000'
const returnDataHex = returnData.slice(2, 10)
let customError
if (compiledContracts) {

Loading…
Cancel
Save