Skip to content

Commit

Permalink
Fix issue on ethers when switching chains (#1579)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvoskamp authored Jan 2, 2024
1 parent ec4e15d commit b0406c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/scaffold-utils/src/EthersHelpersUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ export const EthersHelpersUtil = {
params: [
{
chainId: EthersHelpersUtil.numberToHexString(chain.chainId),
rpcUrls: chain.rpcUrl,
rpcUrls: [chain.rpcUrl],
chainName: chain.name,
nativeCurrency: {
name: chain.currency,
decimals: 18,
symbol: chain.currency
},
blockExplorerUrls: chain.explorerUrl,
blockExplorerUrls: [chain.explorerUrl],
iconUrls: [PresetsUtil.EIP155NetworkImageIds[chain.chainId]]
}
]
Expand Down

3 comments on commit b0406c5

@vercel
Copy link

@vercel vercel bot commented on b0406c5 Jan 2, 2024

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on b0406c5 Jan 2, 2024

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on b0406c5 Jan 2, 2024

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.