Skip to content

Commit

Permalink
fix: web3 add chain prompt (#771)
Browse files Browse the repository at this point in the history
The provider expects the chain ID in hex format
  • Loading branch information
michael1011 authored Dec 11, 2024
1 parent 35420b0 commit c98503d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context/Web3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ const Web3SignerProvider = (props: {
method: "wallet_addEthereumChain",
params: [
{
chainId: sanitizedChainId,
...config.assets[RBTC].network,
blockExplorerUrls: [
config.assets[RBTC].blockExplorerUrl.normal,
],
...config.assets[RBTC].network,
chainId: sanitizedChainId,
},
],
});
Expand Down

0 comments on commit c98503d

Please sign in to comment.