Skip to content

Commit

Permalink
show log
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg authored and LianaHus committed Nov 26, 2024
1 parent 89b3a9b commit 057f359
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ export function ContractGUI(props: ContractGUIProps) {
const IsCompatible = isChainCompatible(compilerState.evmVersion ?? 'cancun', parseInt(tabState.chainId))
if (status === 'Passed' && IsCompatible) {
await handleDeploy()
} else {
// Show log in browser console in case of failure due to unknown reasons
console.log('Failed to run because of EVM version incomaptibility or some other compiler issue')
}
}
}
Expand Down

0 comments on commit 057f359

Please sign in to comment.