make sure the network name comply with sourcify standard

yann300-patch-8
yann300 4 years ago committed by GitHub
parent 5a991218bb
commit fb45dd7d91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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()
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
try {
data = await this.call('source-verification', 'fetchByNetwork', contractAddress, name.toLowerCase())

Loading…
Cancel
Save