Skip to content

Commit

Permalink
fix: chainType sdk cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ameeshaagrawal committed Jun 13, 2024
1 parent d3edafa commit 81f0faa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/deploy/single-click-deploy/integrators/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,25 +127,26 @@ export const updateSDK = async (
);
}

if (chainType === 0) {
const chainTypeInString = Object.keys(ChainType)[chainType];
if (chainTypeInString === ChainType.arbChain) {
await updateFile(
"arbChains.ts",
`,\n ChainSlug.${chainName.toUpperCase()},\n];`,
",\n];"
);
} else if (chainType === 1) {
} else if (chainTypeInString === ChainType.arbL3Chain) {
await updateFile(
"arbL3Chains.ts",
`,\n ChainSlug.${chainName.toUpperCase()},\n];`,
",\n];"
);
} else if (chainType === 2) {
} else if (chainTypeInString === ChainType.opStackL2Chain) {
await updateFile(
"opStackChains.ts",
`,\n ChainSlug.${chainName.toUpperCase()},\n];`,
",\n];"
);
} else if (chainType === 3) {
} else if (chainTypeInString === ChainType.polygonCDKChain) {
await updateFile(
"polygonCDKChains.ts",
`,\n ChainSlug.${chainName.toUpperCase()},\n];`,
Expand Down

0 comments on commit 81f0faa

Please sign in to comment.