|
|
@ -9,7 +9,7 @@ export class RemixClient extends PluginClient { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async verify (apiKey: string, contractAddress: string, contractArguments: string, contractName: string, compilationResultParam: any) { |
|
|
|
async verify (apiKey: string, contractAddress: string, contractArguments: string, contractName: string, compilationResultParam: any) { |
|
|
|
const result = await verify(apiKey, contractAddress, contractArguments, contractName, compilationResultParam, this, |
|
|
|
const result = await verify(apiKey, contractAddress, contractArguments, contractName, compilationResultParam, null, this, |
|
|
|
(value: EtherScanReturn) => {}, (value: string) => {})
|
|
|
|
(value: EtherScanReturn) => {}, (value: string) => {})
|
|
|
|
return result |
|
|
|
return result |
|
|
|
} |
|
|
|
} |
|
|
@ -20,7 +20,7 @@ export class RemixClient extends PluginClient { |
|
|
|
if (network === "vm") { |
|
|
|
if (network === "vm") { |
|
|
|
throw new Error("Cannot check the receipt status in the selected network") |
|
|
|
throw new Error("Cannot check the receipt status in the selected network") |
|
|
|
} |
|
|
|
} |
|
|
|
const etherscanApi = getEtherScanApi(network, networkId) |
|
|
|
const etherscanApi = getEtherScanApi(networkId) |
|
|
|
const receiptStatus = await getReceiptStatus(receiptGuid, apiKey, etherscanApi) |
|
|
|
const receiptStatus = await getReceiptStatus(receiptGuid, apiKey, etherscanApi) |
|
|
|
return { |
|
|
|
return { |
|
|
|
message: receiptStatus.result, |
|
|
|
message: receiptStatus.result, |
|
|
|