Skip to content

Commit

Permalink
Remove Noisy Warning Log (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Jan 21, 2025
1 parent 89a2206 commit 5441a65
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/chains/near.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ type NetworkId = "mainnet" | "testnet";
*/
export function getNetworkId(accountId: string): NetworkId {
const accountExt = accountId.split(".").pop() || "";
if (!["near", "testnet"].includes(accountExt)) {
console.warn(
`Unusual or invalid network extracted from accountId ${accountId}`
);
}
// Consider anything that isn't testnet as mainnet.
return accountExt !== "testnet" ? "mainnet" : accountExt;
}
Expand Down

0 comments on commit 5441a65

Please sign in to comment.