From 8c37e3f863abf1972a2dbb86defb627f9ad9832b Mon Sep 17 00:00:00 2001 From: Kobe Date: Mon, 25 Nov 2024 14:45:14 +0100 Subject: [PATCH] fix: added rpc proxy again --- packages/mrgn-utils/src/rpc.utils.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/mrgn-utils/src/rpc.utils.ts b/packages/mrgn-utils/src/rpc.utils.ts index 39222b836d..34987669c1 100644 --- a/packages/mrgn-utils/src/rpc.utils.ts +++ b/packages/mrgn-utils/src/rpc.utils.ts @@ -1,7 +1,5 @@ export function generateEndpoint(endpoint: string, rpcProxyKey: string = "") { - // if (!rpcProxyKey) return endpoint; - // const hash = Buffer.from(rpcProxyKey, "utf8").toString("base64").replace(/[/+=]/g, ""); - // return `${endpoint}/${hash}`; - - return endpoint; + if (!rpcProxyKey) return endpoint; + const hash = Buffer.from(rpcProxyKey, "utf8").toString("base64").replace(/[/+=]/g, ""); + return `${endpoint}/${hash}`; }