|
|
|
@ -227,7 +227,7 @@ export function UniversalDappUI(props: UdappProps) { |
|
|
|
|
const filePath = `.workspaces/${fileName}` |
|
|
|
|
const file = await props.plugin.call('fileManager', 'readFile', filePath) |
|
|
|
|
|
|
|
|
|
const urlResponse = await axios.post(`https://solidityscan.remixproject.org/uploadFile`, { file, fileName}) |
|
|
|
|
const urlResponse = await axios.post(`https://solidityscan.remixproject.org/uploadFile`, { file, fileName }) |
|
|
|
|
|
|
|
|
|
if (urlResponse.data.status === 'success') { |
|
|
|
|
const ws = new WebSocket('wss://solidityscan.remixproject.org/solidityscan') |
|
|
|
@ -273,7 +273,7 @@ export function UniversalDappUI(props: UdappProps) { |
|
|
|
|
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 }) |
|
|
|
|
const { data: scanData } = await axios.post('https://solidityscan.remixproject.org/downloadResult', { url }) |
|
|
|
|
const scanDetails: Record<string, any>[] = scanData.scan_report.multi_file_scan_details |
|
|
|
|
|
|
|
|
|
const modal: AppModal = { |
|
|
|
|