update msg in modal

pull/4177/head
aniket-engg 1 year ago committed by Aniket
parent 05ad587b5a
commit 22dff31a0f
  1. 4
      libs/remix-ui/run-tab/src/lib/actions/deploy.ts

@ -119,7 +119,9 @@ const getConfirmationCb = (plugin: RunTab, dispatch: React.Dispatch<any>, confir
export const continueHandler = (dispatch: React.Dispatch<any>, gasEstimationPrompt: (msg: string) => JSX.Element, error, continueTxExecution, cancelCb) => { export const continueHandler = (dispatch: React.Dispatch<any>, gasEstimationPrompt: (msg: string) => JSX.Element, error, continueTxExecution, cancelCb) => {
if (error) { if (error) {
const msg = typeof error !== 'string' ? error.message : error let msg = typeof error !== 'string' ? error.message : error
if (msg.includes('invalid opcode')) msg += '/n OR the EVM version used by the selected environment is not compatible with the compiler EVM version.'
dispatch(displayNotification('Gas estimation failed', gasEstimationPrompt(msg), 'Send Transaction', 'Cancel Transaction', () => { dispatch(displayNotification('Gas estimation failed', gasEstimationPrompt(msg), 'Send Transaction', 'Cancel Transaction', () => {
continueTxExecution() continueTxExecution()

Loading…
Cancel
Save