From db5cff64dce750f9e2e097869ee32e4350e669a6 Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Mon, 6 Jan 2025 15:26:37 +0300 Subject: [PATCH] use proper error variant on coin filtering Signed-off-by: onur-ozkan --- mm2src/coins/rpc_command/tendermint/staking.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm2src/coins/rpc_command/tendermint/staking.rs b/mm2src/coins/rpc_command/tendermint/staking.rs index b9c2a618f1..98f973605e 100644 --- a/mm2src/coins/rpc_command/tendermint/staking.rs +++ b/mm2src/coins/rpc_command/tendermint/staking.rs @@ -140,7 +140,7 @@ pub async fn validators_rpc( .await? }, Ok(_) => return MmError::err(ValidatorsRPCError::UnexpectedCoinType { ticker: req.coin }), - Err(_) => return MmError::err(ValidatorsRPCError::UnexpectedCoinType { ticker: req.coin }), + Err(_) => return MmError::err(ValidatorsRPCError::CoinNotFound { ticker: req.coin }), }; Ok(ValidatorsRPCResponse {