Skip to content

Commit

Permalink
Merge branch 'main' of github.com:hyperlane-xyz/hyperlane-monorepo in…
Browse files Browse the repository at this point in the history
…to dan/cosmos-fallbackprovider
  • Loading branch information
daniel-savu committed Feb 5, 2024
2 parents 14ccd7a + 8bfa8c1 commit ffa787f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions typescript/cli/src/deploy/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,18 +472,20 @@ async function writeAgentConfig(
multiProvider: MultiProvider,
) {
const startBlocks: ChainMap<number> = {};
const core = HyperlaneCore.fromAddressesMap(artifacts, multiProvider);

for (const chain of chains) {
const core = HyperlaneCore.fromAddressesMap(artifacts, multiProvider);
const mailbox = core.getContracts(chain).mailbox;
startBlocks[chain] = (await mailbox.deployedBlock()).toNumber();
}

const mergedAddressesMap = objMerge(
sdkContractAddressesMap,
artifacts,
) as ChainMap<HyperlaneDeploymentArtifacts>;

const agentConfig = buildAgentConfig(
Object.keys(mergedAddressesMap),
chains, // Use only the chains that were deployed to
multiProvider,
mergedAddressesMap,
startBlocks,
Expand Down

0 comments on commit ffa787f

Please sign in to comment.