0xMiden / 0xMiden/bridge-portal

Sepolia balance and gas routes ignore configured RPC endpoints

未關閉
#119 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
0
分支
3
PR 合併指標
30 天內沒有已合併 PR

描述

The server-side Sepolia routes do not consistently use the RPC endpoint configuration documented for the portal.

Evidence in the repository:

- `.env.example` documents `AGGLAYER_SEPOLIA_RPC_URL` as the primary server RPC endpoint and `EVM_RPC_URL` as the fallback.
- `README.md` documents the same variables for server-side Sepolia RPC usage.
- `src/app/api/sepolia/transaction/route.ts` uses `process.env.AGGLAYER_SEPOLIA_RPC_URL ?? process.env.EVM_RPC_URL ?? "https://ethereum-sepolia-rpc.publicnode.com"`.
- `src/app/api/sepolia/balance/route.ts` and `src/app/api/sepolia/gas/route.ts` hard-code `https://ethereum-sepolia-rpc.publicnode.com` instead.

As a result, deployments that configure a private or rate-limited-safe Sepolia RPC still send balance and gas requests to the public fallback endpoint.

Duplicate check performed before filing:

- `repo:0xMiden/bridge-portal is:open sepolia rpc env balance gas`
- `repo:0xMiden/bridge-portal is:open AGGLAYER_SEPOLIA_RPC_URL balance gas`

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。