Skip to content

Commit 24cc4c3

Browse files
committed
show log
1 parent f211054 commit 24cc4c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ export function ContractGUI(props: ContractGUIProps) {
240240
const IsCompatible = isChainCompatible(compilerState.evmVersion ?? 'cancun', parseInt(tabState.chainId))
241241
if (status === 'Passed' && IsCompatible) {
242242
await handleDeploy()
243+
} else {
244+
// Show log in browser console in case of failure due to unknown reasons
245+
console.log('Failed to run because of EVM version incomaptibility or some other compiler issue')
243246
}
244247
}
245248
}

0 commit comments

Comments
 (0)