add more info for invalid opcode

pull/4177/head
aniket-engg 1 year ago committed by Aniket
parent 81c5df0078
commit 05ad587b5a
  1. 2
      libs/remix-lib/src/execution/txExecution.ts

@ -83,7 +83,7 @@ export function checkError (execResult, compiledContracts) {
const error = `Error occured: ${execResult.errorMessage}.\n`
let msg = ''
if (exceptionError === errorCode.INVALID_OPCODE) {
msg = '\t\n\tThe execution might have thrown.\n'
msg = '\t\n\tThe execution might have thrown OR the EVM version used by the selected environment is not compatible with the compiler EVM version.\n'
ret.error = true
} else if (exceptionError === errorCode.OUT_OF_GAS) {
msg = '\tThe transaction ran out of gas. Please increase the Gas Limit.\n'

Loading…
Cancel
Save