Skip to content

Commit

Permalink
fix: deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ameeshaagrawal committed Oct 17, 2023
1 parent 40dabdf commit 19b2d3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 0 additions & 2 deletions scripts/deploy/configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ export const main = async () => {
await tx.wait();
}

if (!addr["integrations"]) return;

const integrations = addr["integrations"] ?? {};
const integrationList = Object.keys(integrations).filter((chain) =>
chains.includes(parseInt(chain) as ChainSlug)
Expand Down
16 changes: 11 additions & 5 deletions scripts/deploy/scripts/deploySwitchboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,17 @@ async function deploySwitchboard(
mode
);

sourceConfig = createObj(
sourceConfig,
["integrations", remoteChain.toString(), integrationType, "switchboard"],
switchboard.address
);
if (remoteChain.toString().length > 0)
sourceConfig = createObj(
sourceConfig,
[
"integrations",
remoteChain.toString(),
integrationType,
"switchboard",
],
switchboard.address
);

if (integrationType === IntegrationTypes.optimistic) {
sourceConfig[CORE_CONTRACTS.OptimisticSwitchboard] = switchboard.address;
Expand Down

0 comments on commit 19b2d3c

Please sign in to comment.