Skip to content

Commit

Permalink
Merge pull request #215 from lidofinance/develop
Browse files Browse the repository at this point in the history
Merge from develop into main
  • Loading branch information
AnnaSila authored Jan 23, 2024
2 parents 4baef8e + bde3a35 commit 7471c21
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 185 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"react-hook-form": "^7.45.2",
"react-is": "^18.2.0",
"react-transition-group": "^4.4.2",
"reef-knot": "^1.13.2",
"reef-knot": "^1.15.3",
"remark": "^13.0.0",
"remark-external-links": "^8.0.0",
"remark-html": "^13.0.1",
Expand Down Expand Up @@ -127,7 +127,9 @@
},
"resolutions": {
"postcss": "^8.4.31",
"crypto-js": "^4.2.0"
"crypto-js": "^4.2.0",
"@ledgerhq/hw-transport-webhid": "6.28.1",
"@ledgerhq/hw-transport": "6.30.1"
},
"lint-staged": {
"./**/*.{ts,tsx}": [
Expand Down
8 changes: 3 additions & 5 deletions providers/web3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ const Web3Provider: FC<PropsWithChildren> = ({ children }) => {
// TODO: remove after updating wagmi to v1+
supportedChains.push(wagmiChains.polygonMumbai);

const defaultChain = wagmiChainsArray.find(
(chain) => chain.id === dynamics.defaultChain,
);
const defaultChain =
wagmiChainsArray.find((chain) => chain.id === dynamics.defaultChain) ||
supportedChains[0]; // first supported chain as fallback

const jsonRpcBatchProvider = (chain: Chain) => ({
provider: () =>
Expand Down Expand Up @@ -85,8 +85,6 @@ const Web3Provider: FC<PropsWithChildren> = ({ children }) => {

return (
<WagmiConfig client={client}>
{/* TODO */}
{/* @ts-expect-error need to patch web3-react */}
<ProviderWeb3
pollingInterval={1200}
defaultChainId={defaultChain}
Expand Down
Loading

0 comments on commit 7471c21

Please sign in to comment.