|
|
@ -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) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|