From 0418e97d64e3226dce0a95b5399de43b66738c54 Mon Sep 17 00:00:00 2001 From: satyakwok <119509589+satyakwok@users.noreply.github.com> Date: Sun, 10 May 2026 23:32:21 +0200 Subject: [PATCH] chore: drop /rpc suffix from EVM endpoint defaults Match the canonical chainlist submission + the rest of the Sentrix frontend stack. Both forms route to the same backend; bare is the convention every wallet-add flow uses. --- src/config.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index f8b2623..077ac07 100644 --- a/src/config.rs +++ b/src/config.rs @@ -78,16 +78,19 @@ pub const fn grpc_endpoint() -> &'static str { } /// EVM JSON-RPC endpoint — `eth_*` methods served at port 8545, -/// fronted by Caddy at the public RPC subdomain. +/// fronted by Caddy at the public RPC subdomain. Bare host (no `/rpc` +/// suffix) matches the canonical chainlist registry submission and the +/// rest of the Sentrix frontend stack — both forms route to the same +/// backend, but bare is the convention every wallet-add flow uses. pub const fn evm_rpc_endpoint() -> &'static str { match Network::current() { Network::Mainnet => match option_env!("SENTRIX_EVM_MAINNET") { Some(s) => s, - None => "https://rpc.sentrixchain.com/rpc", + None => "https://rpc.sentrixchain.com", }, Network::Testnet => match option_env!("SENTRIX_EVM_TESTNET") { Some(s) => s, - None => "https://testnet-rpc.sentrixchain.com/rpc", + None => "https://testnet-rpc.sentrixchain.com", }, } }