Skip to content

Commit

Permalink
feat(@nftx/react): support base
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmellis committed May 13, 2024
1 parent ddbe202 commit 83609b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/contexts/nftx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as core from 'nftx.js';
import { EventsProvider } from './events';
import { Network, Provider, Signer } from 'nftx.js';
import { createPublicClient, http } from 'viem';
import { arbitrum, mainnet, sepolia } from 'viem/chains';
import { arbitrum, mainnet, sepolia, base } from 'viem/chains';

const getDefaultProvider = (network: number) => {
const chain = (() => {
Expand All @@ -18,6 +18,8 @@ const getDefaultProvider = (network: number) => {
return arbitrum;
case Network.Sepolia:
return sepolia;
case Network.Base:
return base;
case Network.Mainnet:
default:
return mainnet;
Expand Down

0 comments on commit 83609b0

Please sign in to comment.