Skip to content

Commit

Permalink
fix: chainConfig format error when trying to call wallet_addEthereumC…
Browse files Browse the repository at this point in the history
…hain
  • Loading branch information
vancelin committed Oct 18, 2022
1 parent 798709b commit b23ef49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/useMetaMaskWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const switchOrAddChain = async (
params: [
{
chainId: chainIdHex,
chainConfig,
...chainConfig,
},
],
});
Expand Down

0 comments on commit b23ef49

Please sign in to comment.