Merge pull request #460 from ethereum/yann300-patch-8

Make sure the network name comply with the sourcify standard
pull/5370/head
yann300 4 years ago committed by GitHub
commit 9d6173e303
  1. 2
      apps/remix-ide/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js

@ -69,7 +69,7 @@ export default class FetchAndCompile extends Plugin {
} }
let name = network.name.toLowerCase() let name = network.name.toLowerCase()
name === 'main' ? 'mainnet' : name // source-verifier api expect "mainnet" and not "main" name = name === 'main' ? 'mainnet' : name // source-verifier api expect "mainnet" and not "main"
let data let data
try { try {
data = await this.call('source-verification', 'fetchByNetwork', contractAddress, name.toLowerCase()) data = await this.call('source-verification', 'fetchByNetwork', contractAddress, name.toLowerCase())

Loading…
Cancel
Save