Skip to content

Commit

Permalink
Merge pull request #875 from ava-labs/fix/get-networkid
Browse files Browse the repository at this point in the history
fix: network id type error
  • Loading branch information
rictorlome authored Sep 19, 2024
2 parents fc90ce1 + 0ad71b1 commit ecde0b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/info/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export type GetNodeIpResponse = {
};

export type GetNetworkIdResponse = {
networkID: number;
networkID: string;
};

export type GetNetworkNameResponse = {
Expand Down
3 changes: 2 additions & 1 deletion src/vms/context/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export const getContextFromURI = async (
const { blockchainID: pBlockchainID } = await info.getBlockchainId('P');
const { blockchainID: cBlockchainID } = await info.getBlockchainId('C');

const { networkID } = await info.getNetworkId();
const { networkID: networkIDstring } = await info.getNetworkId();
const networkID = Number(networkIDstring);

return Object.freeze({
xBlockchainID,
Expand Down

0 comments on commit ecde0b1

Please sign in to comment.