Skip to content

Commit

Permalink
fix sia orderbook address
Browse files Browse the repository at this point in the history
  • Loading branch information
Alrighttt committed Nov 7, 2024
1 parent 171f5f6 commit c20d404
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mm2src/mm2_main/src/lp_ordermatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
}
}

0 comments on commit c20d404

Please sign in to comment.