Skip to content

Commit

Permalink
Revert local change as a result of merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ltyu committed Dec 3, 2024
1 parent 22fa5fe commit 4c0ce06
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions typescript/sdk/src/providers/MultiProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,30 +339,6 @@ export class MultiProvider<MetaExt = {}> extends ChainMetadataManager<MetaExt> {
// wait for deploy tx to be confirmed
await this.handleTx(chainNameOrId, contract.deployTransaction);

// verify deployed contracts
try {
const chain = this.getChainName(chainNameOrId);
const explorerApi = this.getExplorerApi(chain);
const contractVerifier = new ContractVerifier(
this as MultiProvider,
{ [chain]: explorerApi.apiKey ?? '' },
coreBuildArtifact,
ExplorerLicenseType.MIT,
);
const factoryName = factory.constructor.name;
console.log(`trying to verify ${factoryName}`);
const verificationInput = getContractVerificationInput({
name: factoryName.substring(0, factoryName.indexOf('__factory')),
contract,
bytecode: factory.bytecode,
expectedimplementation: contract.address,
});

contractVerifier.verifyContract(chain, verificationInput, this.logger);
} catch (e) {
this.logger.debug(`Failed to verify contracts in MultiProvider ${e}`);
}

// return deployed contract
return contract as Awaited<ReturnType<F['deploy']>>;
}
Expand Down

0 comments on commit 4c0ce06

Please sign in to comment.