diff --git a/apps/remix-ide/src/app/tabs/locales/en/udapp.json b/apps/remix-ide/src/app/tabs/locales/en/udapp.json index f39051be18..25b82c58b3 100644 --- a/apps/remix-ide/src/app/tabs/locales/en/udapp.json +++ b/apps/remix-ide/src/app/tabs/locales/en/udapp.json @@ -86,6 +86,8 @@ "udapp.solScan.modalOkLabel": "Continue", "udapp.solScan.modalCancelLabel": "Cancel", "udapp.solScan.errModalTitle": "Scanning error", + "udapp.solScan.successModalTitle": "Scanning successful", + "udapp._comment_recorderCardUI.tsx": "libs/remix-ui/run-tab/src/lib/components/recorderCardUI.tsx", "udapp.transactionsRecorded": "Transactions recorded", diff --git a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx index 4d6d74dbc5..420ad0e138 100644 --- a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx @@ -231,8 +231,6 @@ export function UniversalDappUI(props: UdappProps) { fileName }) - // websocket connection - if (urlResponse.data.status === 'success') { const ws = new WebSocket('wss://solidityscan.remixproject.org/solidityscan') @@ -268,6 +266,16 @@ export function UniversalDappUI(props: UdappProps) { okLabel: 'Close' } await props.plugin.call('notification', 'modal', modal) + } else if (data.type === "scan_status" && data.payload.scan_status === "scan_done") { + console.log('data.payload--->', data.payload) + + const modal: AppModal = { + id: 'SolidityScanSuccess', + title: , + message: 'Scan successful', + okLabel: 'Close' + } + await props.plugin.call('notification', 'modal', modal) } })