scan success

pull/4845/head
aniket-engg 6 months ago committed by Aniket
parent 0bcf95f0b0
commit 4db0ce9c3b
  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.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",

@ -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: <FormattedMessage id="udapp.solScan.successModalTitle" />,
message: 'Scan successful',
okLabel: 'Close'
}
await props.plugin.call('notification', 'modal', modal)
}
})

Loading…
Cancel
Save