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 1fdd80b
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions typescript/sdk/src/providers/MultiProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
} from 'ethers';
import { Logger } from 'pino';

import { buildArtifact as coreBuildArtifact } from '@hyperlane-xyz/core/buildArtifact.js';
import {
Address,
addBufferToGasLimit,
Expand All @@ -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';
Expand Down Expand Up @@ -339,30 +335,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 1fdd80b

Please sign in to comment.