Skip to content

Commit

Permalink
fix: added rpc proxy again
Browse files Browse the repository at this point in the history
  • Loading branch information
k0beLeenders committed Nov 25, 2024
1 parent 176cff6 commit 8c37e3f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/mrgn-utils/src/rpc.utils.ts
Original file line number Diff line number Diff line change
@@ -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}`;
}

0 comments on commit 8c37e3f

Please sign in to comment.