Skip to content

Commit 08b9533

Browse files
authored
set default value for returnData
1 parent 69d226b commit 08b9533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/remix-lib/src/execution/txExecution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function checkError (execResult, compiledContracts) {
8989
msg = '\tThe transaction ran out of gas. Please increase the Gas Limit.\n'
9090
ret.error = true
9191
} else if (exceptionError === errorCode.REVERT || exceptionError === 'execution reverted') {
92-
const returnData = execResult.errorData
92+
const returnData = execResult.errorData || '0x00000000'
9393
const returnDataHex = returnData.slice(2, 10)
9494
let customError
9595
if (compiledContracts) {

0 commit comments

Comments
 (0)