Skip to content

Commit

Permalink
Add Moar Chainz (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Aug 24, 2024
1 parent 8a71186 commit c166f3f
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/network.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import { Chain, createPublicClient, http, PublicClient } from "viem";
import {
sepolia,
mainnet,
arbitrum,
base,
blast,
gnosis,
holesky,
arbitrum,
localhost,
mainnet,
optimism,
optimismSepolia,
localhost,
sepolia,
} from "viem/chains";

// All supported networks
const SUPPORTED_NETWORKS = createNetworkMap([
base,
blast,
mainnet,
gnosis,
sepolia,
Expand Down Expand Up @@ -54,7 +58,10 @@ export class Network implements NetworkFields {
static fromChainId(chainId: number): Network {
const networkFields = SUPPORTED_NETWORKS[chainId];
if (!networkFields) {
throw new Error(`Network with chainId ${chainId} is not supported.`);
throw new Error(
`Network with chainId ${chainId} is not supported.
Please reach out to the developers of https://github.com/Mintbase/near-ca`
);
}
return new Network(networkFields);
}
Expand Down

0 comments on commit c166f3f

Please sign in to comment.