0xMiden / 0xMiden/bridge-portal

Sepolia balance and gas routes ignore configured RPC endpoints

Aperta
#119 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
0
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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`

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.