Skip to content

Commit

Permalink
Feature/add sepolia (#1947)
Browse files Browse the repository at this point in the history
* add sepolia

* bump ocean lib

* add sepolia to wagmi config
  • Loading branch information
bogdanfazakas authored Jul 20, 2023
1 parent 99563a7 commit 40d3ec1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 35 deletions.
2 changes: 1 addition & 1 deletion app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
chainIds: [1, 137],

// List of all supported chainIds. Used to populate the Chains user preferences list.
chainIdsSupported: [1, 137, 5, 80001],
chainIdsSupported: [1, 137, 5, 80001, 11155111],

customProviderUrl: process.env.NEXT_PUBLIC_PROVIDER_URL,

Expand Down
52 changes: 20 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/@utils/wallet/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LoggerInstance } from '@oceanprotocol/lib'
import { createClient, erc20ABI } from 'wagmi'
import { mainnet, polygon, bsc, goerli, polygonMumbai } from 'wagmi/chains'
import { mainnet, polygon, goerli, polygonMumbai, sepolia } from 'wagmi/chains'
import { ethers, Contract, Signer, providers } from 'ethers'
import { formatEther } from 'ethers/lib/utils'
import { getDefaultClient } from 'connectkit'
Expand Down Expand Up @@ -30,7 +30,7 @@ export const wagmiClient = createClient(
appName: 'Ocean Market',
infuraId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID,
// TODO: mapping between appConfig.chainIdsSupported and wagmi chainId
chains: [mainnet, polygon, goerli, polygonMumbai],
chains: [mainnet, polygon, goerli, polygonMumbai, sepolia],
walletConnectProjectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID
})
)
Expand Down

1 comment on commit 40d3ec1

@vercel
Copy link

@vercel vercel bot commented on 40d3ec1 Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.