From c20d404d62eb9d94a960a103baa5d831ace9811a Mon Sep 17 00:00:00 2001 From: Alright Date: Thu, 7 Nov 2024 15:11:54 -0500 Subject: [PATCH] fix sia orderbook address --- mm2src/mm2_main/src/lp_ordermatch.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mm2src/mm2_main/src/lp_ordermatch.rs b/mm2src/mm2_main/src/lp_ordermatch.rs index 852f07d455..c4158a3e9f 100644 --- a/mm2src/mm2_main/src/lp_ordermatch.rs +++ b/mm2src/mm2_main/src/lp_ordermatch.rs @@ -5863,10 +5863,8 @@ fn orderbook_address( CoinProtocol::LIGHTNING { .. } => Ok(OrderbookAddress::Shielded), #[cfg(feature = "enable-sia")] CoinProtocol::SIA => { - let pubkey = coins::siacoin::PublicKey::from_str_no_prefix(pubkey) - .map_to_mm(|e| OrderbookAddrErr::DeserializationError(e.to_string()))?; - let address = coins::siacoin::Address::from_public_key(&pubkey); - Ok(OrderbookAddress::Transparent(address.to_string())) + // deprecated "orderbook address" feature. The "pubkey" provided here is secp256k1, so we can't create a sia address from it. + Ok(OrderbookAddress::Shielded) }, } }