From 2c49a648dd07bbbb9fa1d3088d9efa2500b12643 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 1 Oct 2025 14:28:37 +0100 Subject: [PATCH] Switch to the internal rpc for dapp rpc requests --- .../createHTTPConnectionMessageHandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/background/messaging/port-message-handlers/createHTTPConnectionMessageHandler.ts b/src/background/messaging/port-message-handlers/createHTTPConnectionMessageHandler.ts index bcaed9c6d7..655ca9ef9f 100644 --- a/src/background/messaging/port-message-handlers/createHTTPConnectionMessageHandler.ts +++ b/src/background/messaging/port-message-handlers/createHTTPConnectionMessageHandler.ts @@ -31,7 +31,7 @@ export function createHttpConnectionMessageHandler( .eth_chainId({ context, id: msg.id }) .then((chainIdStr) => { const chainId = normalizeChainId(chainIdStr); - return wallet.getRpcUrlByChainId({ chainId, type: 'public' }); + return wallet.getRpcUrlByChainId({ chainId, type: 'internal' }); }) .then((url) => { invariant(url, `HttpConnection: No RpcUrl for ${context.origin}`); @@ -52,7 +52,7 @@ export function createHttpConnectionMessageHandler( const chainId = normalizeChainId(requestContext.chainId); const wallet = getWallet(); wallet - .getRpcUrlByChainId({ chainId, type: 'public' }) + .getRpcUrlByChainId({ chainId, type: 'internal' }) .then((url) => { invariant(url, `HttpConnection: No RpcUrl for ${context.origin}`); const httpConnection = new HttpConnection({ url });