scan success

pull/5370/head
aniket-engg 6 months ago committed by Aniket
parent fa6febd264
commit 6af96b845d
  1. 2
      apps/remix-ide/src/app/tabs/locales/en/udapp.json
  2. 12
      libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx

@ -86,6 +86,8 @@
"udapp.solScan.modalOkLabel": "Continue", "udapp.solScan.modalOkLabel": "Continue",
"udapp.solScan.modalCancelLabel": "Cancel", "udapp.solScan.modalCancelLabel": "Cancel",
"udapp.solScan.errModalTitle": "Scanning error", "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._comment_recorderCardUI.tsx": "libs/remix-ui/run-tab/src/lib/components/recorderCardUI.tsx",
"udapp.transactionsRecorded": "Transactions recorded", "udapp.transactionsRecorded": "Transactions recorded",

@ -231,8 +231,6 @@ export function UniversalDappUI(props: UdappProps) {
fileName fileName
}) })
// websocket connection
if (urlResponse.data.status === 'success') { if (urlResponse.data.status === 'success') {
const ws = new WebSocket('wss://solidityscan.remixproject.org/solidityscan') const ws = new WebSocket('wss://solidityscan.remixproject.org/solidityscan')
@ -268,6 +266,16 @@ export function UniversalDappUI(props: UdappProps) {
okLabel: 'Close' okLabel: 'Close'
} }
await props.plugin.call('notification', 'modal', modal) 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: <FormattedMessage id="udapp.solScan.successModalTitle" />,
message: 'Scan successful',
okLabel: 'Close'
}
await props.plugin.call('notification', 'modal', modal)
} }
}) })

Loading…
Cancel
Save