From 2275408c45438d4b6bee08da083c666b90929dac Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 4 Jun 2024 14:02:13 +0530 Subject: [PATCH] update text --- apps/remix-ide/src/app/tabs/locales/en/udapp.json | 4 ++-- libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) 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 25b82c58b3..27b5b4cb40 100644 --- a/apps/remix-ide/src/app/tabs/locales/en/udapp.json +++ b/apps/remix-ide/src/app/tabs/locales/en/udapp.json @@ -80,9 +80,9 @@ "udapp.pinnedAt": "Pinned at", "udapp.filePath": "File path", - "udapp.solScan.iconTooltip": "Run Solidity scan for contract", + "udapp.solScan.iconTooltip": "Click to scan this contract for vulnerabilities using third-party SolidityScan [BETA]", "udapp.solScan.modalTitle": "Permission to share code", - "udapp.solScan.modalMessage": "Contract code will be shared to third party Solidity Scan.\n Would you like to continue?", + "udapp.solScan.modalMessage": "To scan the contract for vulnerabilities & possible risks, smart contract code will be shared to third-party SolidityScan (https://solidityscan.com/).\n\n Would you like to continue?", "udapp.solScan.modalOkLabel": "Continue", "udapp.solScan.modalCancelLabel": "Cancel", "udapp.solScan.errModalTitle": "Scanning error", 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 7992fe8bb5..da1994379d 100644 --- a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx @@ -240,7 +240,6 @@ export function UniversalDappUI(props: UdappProps) { ws.addEventListener('message', async (event) => { const data = JSON.parse(event.data) - console.log('data---->', data) if (data.type === "auth_token_register" && data.payload.message === "Auth token registered.") { // Message on Bearer token successful registration const reqToInitScan = { @@ -269,8 +268,7 @@ export function UniversalDappUI(props: UdappProps) { await props.plugin.call('notification', 'modal', modal) } else if (data.type === "scan_status" && data.payload.scan_status === "scan_done") { // Message on successful scan - - console.log('data.payload--->', data.payload) + const url = data.payload.scan_details.link const { data: scanData } = await axios.post('https://solidityscan.remixproject.org/downloadResult', { url })