set default value for returnData

pull/4278/head
yann300 1 year ago committed by GitHub
parent 69d226bb97
commit 08b953365e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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