Skip to content

Commit 629598a

Browse files
committed
fix(rn_cli_wallet): use walletconnect.org RPC and remove debug EURC check
Switch to https://rpc.walletconnect.org/v1/ as the RPC endpoint for on-chain ERC-20 balance fetching. Remove temporary debug function and useEffect from App.tsx. Made-with: Cursor
1 parent 41385b6 commit 629598a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

wallets/rn_cli_wallet/src/services/ERC20BalanceService.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ const ERC20_TOKENS: ERC20TokenConfig[] = [
2525
},
2626
];
2727

28+
const RPC_BASE_URL = 'https://rpc.walletconnect.org/v1/';
29+
2830
function getRpcUrl(chainId: string): string | null {
29-
const baseUrl = Config.ENV_BLOCKCHAIN_API_URL;
3031
const projectId = Config.ENV_PROJECT_ID;
31-
if (!baseUrl || !projectId) {
32+
if (!projectId) {
3233
return null;
3334
}
34-
return `${baseUrl}/v1/?chainId=${chainId}&projectId=${projectId}`;
35+
return `${RPC_BASE_URL}?chainId=${chainId}&projectId=${projectId}`;
3536
}
3637

3738
async function fetchSingleERC20Balance(

0 commit comments

Comments
 (0)