@@ -39,7 +39,6 @@ import { ChainMap, ChainName } from '../types.js';
3939
4040import {
4141 UpgradeConfig ,
42- isInitialized ,
4342 isProxy ,
4443 proxyAdmin ,
4544 proxyConstructorArgs ,
@@ -404,36 +403,25 @@ export abstract class HyperlaneDeployer<
404403 ) ;
405404
406405 if ( initializeArgs ) {
407- if (
408- await isInitialized (
409- this . multiProvider . getProvider ( chain ) ,
410- contract . address ,
411- )
412- ) {
413- this . logger . debug (
414- `Skipping: Contract ${ contractName } (${ contract . address } ) on ${ chain } is already initialized` ,
415- ) ;
416- } else {
417- this . logger . debug (
418- `Initializing ${ contractName } (${ contract . address } ) on ${ chain } ...` ,
419- ) ;
406+ this . logger . debug (
407+ `Initializing ${ contractName } (${ contract . address } ) on ${ chain } ...` ,
408+ ) ;
420409
421- // Estimate gas for the initialize transaction
422- const estimatedGas = await contract . estimateGas . initialize (
423- ...initializeArgs ,
424- ) ;
410+ // Estimate gas for the initialize transaction
411+ const estimatedGas = await contract . estimateGas . initialize (
412+ ...initializeArgs ,
413+ ) ;
425414
426- // deploy with buffer on gas limit
427- const overrides = this . multiProvider . getTransactionOverrides ( chain ) ;
428- const initTx = await contract . initialize ( ...initializeArgs , {
429- gasLimit : addBufferToGasLimit ( estimatedGas ) ,
430- ...overrides ,
431- } ) ;
432- const receipt = await this . multiProvider . handleTx ( chain , initTx ) ;
433- this . logger . debug (
434- `Successfully initialized ${ contractName } (${ contract . address } ) on ${ chain } : ${ receipt . transactionHash } ` ,
435- ) ;
436- }
415+ // deploy with buffer on gas limit
416+ const overrides = this . multiProvider . getTransactionOverrides ( chain ) ;
417+ const initTx = await contract . initialize ( ...initializeArgs , {
418+ gasLimit : addBufferToGasLimit ( estimatedGas ) ,
419+ ...overrides ,
420+ } ) ;
421+ const receipt = await this . multiProvider . handleTx ( chain , initTx ) ;
422+ this . logger . debug (
423+ `Successfully initialized ${ contractName } (${ contract . address } ) on ${ chain } : ${ receipt . transactionHash } ` ,
424+ ) ;
437425 }
438426
439427 const verificationInput = getContractVerificationInput ( {
0 commit comments