diff --git a/ethereum/src/rpc/http_rpc.rs b/ethereum/src/rpc/http_rpc.rs index e7a84214..a38715e4 100644 --- a/ethereum/src/rpc/http_rpc.rs +++ b/ethereum/src/rpc/http_rpc.rs @@ -66,7 +66,7 @@ async fn get(req: &str) -> Result { impl ConsensusRpc for HttpRpc { fn new(rpc: &str) -> Self { HttpRpc { - rpc: rpc.to_string(), + rpc: rpc.trim_end_matches('/').to_string(), } }