Skip to content

Commit

Permalink
Merge pull request #961 from onflow/brian-doyle/fix-add-to-mm-button
Browse files Browse the repository at this point in the history
Fix Add to MM button -  expects  `0x` String
  • Loading branch information
briandoyle81 authored Oct 22, 2024
2 parents 1c7975d + 1698bdb commit ab8d584
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 ab8d584

Please sign in to comment.