Skip to content

Commit

Permalink
Adding networks fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Feb 15, 2023
1 parent 1888fbe commit c103103
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/provider/masa-context-provider.tsx
Expand Up @@ -178,7 +178,12 @@ export const MasaContextProvider = ({
if (typeof window !== 'undefined' && networkDetails) {
await window?.ethereum?.request({
method: 'wallet_addEthereumChain',
params: [networkDetails],
params: [
{
...networkDetails,
chainId: ethers.utils.hexValue(networkDetails.chainId),
},
],
});
}
} catch (error) {
Expand Down

0 comments on commit c103103

Please sign in to comment.