Skip to content

Commit

Permalink
fix: update NetworkName
Browse files Browse the repository at this point in the history
  • Loading branch information
AnilChinchawale committed Jul 31, 2023
1 parent c3ec547 commit c3aaf19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/commands/config/config.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export enum TestNetwork {
Goerli = "goerli (deprecated)",
Sepolia = "sepolia",
Mumbai = "mumbai (polygon)",
XDCApothem = "apothem (xdc)",
Apothem = "apothem (xdc)",
}
4 changes: 2 additions & 2 deletions src/commands/config/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const handler = async (args: CreateConfigCommand): Promise<void> => {
TestNetwork.Goerli,
TestNetwork.Sepolia,
TestNetwork.Mumbai,
TestNetwork.XDCApothem,
TestNetwork.Apothem,
];
const { network } = await inquirer.prompt({
type: "list",
Expand All @@ -90,7 +90,7 @@ const convertNetworkToNetworkCmdName = (selectedNetwork: TestNetwork): NetworkCm
[TestNetwork.Goerli]: NetworkCmdName.Goerli,
[TestNetwork.Sepolia]: NetworkCmdName.Sepolia,
[TestNetwork.Mumbai]: NetworkCmdName.Maticmum,
[TestNetwork.XDCApothem]: NetworkCmdName.XDCApothem,
[TestNetwork.Apothem]: NetworkCmdName.Apothem,
};
return network[selectedNetwork];
};
4 changes: 2 additions & 2 deletions src/commands/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export enum NetworkCmdName {
Matic = "matic",
Maticmum = "maticmum",
XDC = "xdc",
XDCApothem = "xdcapothem",
Apothem = "xdcapothem",
}

const defaultInfuraProvider =
Expand Down Expand Up @@ -83,7 +83,7 @@ export const supportedNetwork: {
networkName: "xdc",
currency: "XDC",
},
[NetworkCmdName.XDCApothem]: {
[NetworkCmdName.Apothem]: {
explorer: "https://apothem.xdcscan.io",
provider: jsonRpcProvider("https://erpc.apothem.network"),
networkId: 51,
Expand Down

0 comments on commit c3aaf19

Please sign in to comment.