Skip to content

Commit

Permalink
fix: Adding sonic network
Browse files Browse the repository at this point in the history
  • Loading branch information
paintoshi committed Oct 24, 2023
1 parent 67c2b76 commit 4fde70e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const metadata = {

const sonic: Chain = {
...fantom,
id: 251, // What to use here?
id: 64240,
/**
* contracts: {
* {multicall3: {address: '0xca11bde05977b3631167028862be2a173976ca11'}
Expand All @@ -46,13 +46,19 @@ const sonic: Chain = {
name: 'Sonic',
network: 'sonic',
rpcUrls: {
default: {http: ['https://rpc.ftm.tools/'] as const}, // To satisfy readonly
public: {http: ['https://rpc.ftm.tools/'] as const} // To satisfy readonly
default: {http: ['https://rpcapi.sonic.fantom.network/'] as const}, // To satisfy readonly
public: {http: ['https://rpcapi.sonic.fantom.network/'] as const} // To satisfy readonly
},
blockExplorers: {
default: {
name: 'Sonic Explorer',
url: 'https://public-sonic.fantom.network',
},
},
}

const { chains, publicClient } = configureChains(
[fantom, avalanche],
[sonic, fantom, avalanche],
[
walletConnectProvider({ projectId }),
publicProvider(),
Expand Down

0 comments on commit 4fde70e

Please sign in to comment.