Skip to content

Commit

Permalink
Fix Add to MM button - expects stirng
Browse files Browse the repository at this point in the history
  • Loading branch information
briandoyle81 committed Oct 22, 2024
1 parent 1c7975d commit 1698bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/addNetworkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const AddNetworkButton = (): JSX.Element => {
method: 'wallet_addEthereumChain',
params: [
{
chainId: id.toString(16), // '0x2eb', // 747 in hexadecimal
chainId: `0x${id.toString(16)}`, // '0x2eb', // 747 in hexadecimal
chainName: name,
rpcUrls,
iconUrls: [
Expand All @@ -72,7 +72,7 @@ export const AddNetworkButton = (): JSX.Element => {
name: 'Flow',
symbol: 'FLOW',
decimals: 18,
},
},
blockExplorerUrls,
},
],
Expand Down

0 comments on commit 1698bdb

Please sign in to comment.