From 05ad587b5a7836b48a1dc42f886871ba566baa25 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Wed, 1 Nov 2023 15:53:39 +0530 Subject: [PATCH] add more info for invalid opcode --- libs/remix-lib/src/execution/txExecution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-lib/src/execution/txExecution.ts b/libs/remix-lib/src/execution/txExecution.ts index cad6ddaf8e..6c65b46dbd 100644 --- a/libs/remix-lib/src/execution/txExecution.ts +++ b/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'