From df1e60e3900413549eb52a6937479192eb0b1fe8 Mon Sep 17 00:00:00 2001 From: michael1011 Date: Wed, 11 Dec 2024 22:57:52 +0100 Subject: [PATCH] fix: web3 add chain prompt The provider expects the chain ID in hex format --- src/context/Web3.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context/Web3.tsx b/src/context/Web3.tsx index 9c2cd25f..66c56ba9 100644 --- a/src/context/Web3.tsx +++ b/src/context/Web3.tsx @@ -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, }, ], });