Remove comments

pull/4594/head
Rim Rakhimov 11 months ago committed by Aniket
parent 0d51edfaa3
commit 7c6b663c26
  1. 10
      libs/remix-core-plugin/src/lib/helpers/fetch-blockscout.ts

@ -12,16 +12,6 @@ export const fetchContractFromBlockscout = async (plugin, endpoint, contractAddr
if (!data.result[0].SourceCode || data.result[0].SourceCode === '') {
throw new Error(`contract not verified on Blockscout ${endpoint} network`)
}
// if (data.result[0].AdditionalSources
// && Array.isArray(data.result[0].AdditionalSources)
// && data.result[0].AdditionalSources.length > 0) {
// let sourceCode = {
// data.result[0].FileName
// }
// }
// if (data.result[0].SourceCode.startsWith('{')) {
// data.result[0].SourceCode = JSON.parse(data.result[0].SourceCode.replace(/(?:\r\n|\r|\n)/g, '').replace(/^{{/, '{').replace(/}}$/, '}'))
// }
}
} else throw new Error('unable to retrieve contract data ' + data.message)
} catch (e) {

Loading…
Cancel
Save