diff --git a/typescript/sdk/src/providers/MultiProvider.ts b/typescript/sdk/src/providers/MultiProvider.ts index 6ffc94e8c0..533319e29c 100644 --- a/typescript/sdk/src/providers/MultiProvider.ts +++ b/typescript/sdk/src/providers/MultiProvider.ts @@ -9,7 +9,6 @@ import { } from 'ethers'; import { Logger } from 'pino'; -import { buildArtifact as coreBuildArtifact } from '@hyperlane-xyz/core/buildArtifact.js'; import { Address, addBufferToGasLimit, @@ -18,9 +17,6 @@ import { } from '@hyperlane-xyz/utils'; import { testChainMetadata, testChains } from '../consts/testChains.js'; -import { ContractVerifier } from '../deploy/verify/ContractVerifier.js'; -import { ExplorerLicenseType } from '../deploy/verify/types.js'; -import { getContractVerificationInput } from '../deploy/verify/utils.js'; import { ChainMetadataManager } from '../metadata/ChainMetadataManager.js'; import { ChainMetadata } from '../metadata/chainMetadataTypes.js'; import { ChainMap, ChainName, ChainNameOrId } from '../types.js'; @@ -339,30 +335,6 @@ export class MultiProvider extends ChainMetadataManager { // 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>; }