Skip to content

Commit

Permalink
fix: add XDC Apothem network in config create (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnilChinchawale committed Aug 1, 2023
1 parent 6984d96 commit eb241ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/commands/config/config.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ export enum TestNetwork {
Goerli = "goerli (deprecated)",
Sepolia = "sepolia",
Mumbai = "mumbai (polygon)",
Apothem = "apothem (xdc)",
}
9 changes: 8 additions & 1 deletion src/commands/config/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ export const handler = async (args: CreateConfigCommand): Promise<void> => {
args.configTemplatePath = configTemplatePath;
}

const networks = [TestNetwork.Local, TestNetwork.Goerli, TestNetwork.Sepolia, TestNetwork.Mumbai];
const networks = [
TestNetwork.Local,
TestNetwork.Goerli,
TestNetwork.Sepolia,
TestNetwork.Mumbai,
TestNetwork.Apothem,
];
const { network } = await inquirer.prompt({
type: "list",
name: "network",
Expand All @@ -84,6 +90,7 @@ const convertNetworkToNetworkCmdName = (selectedNetwork: TestNetwork): NetworkCm
[TestNetwork.Goerli]: NetworkCmdName.Goerli,
[TestNetwork.Sepolia]: NetworkCmdName.Sepolia,
[TestNetwork.Mumbai]: NetworkCmdName.Maticmum,
[TestNetwork.Apothem]: NetworkCmdName.XDCApothem,
};
return network[selectedNetwork];
};

0 comments on commit eb241ce

Please sign in to comment.