mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Don't allow constructing unusable serai_client::bitcoin::Address es
This commit is contained in:
@@ -389,9 +389,9 @@ impl Wallet {
|
||||
Wallet::Bitcoin { public_key, .. } => {
|
||||
use bitcoin_serai::bitcoin::{Network, Address};
|
||||
ExternalAddress::new(
|
||||
networks::bitcoin::Address(Address::p2pkh(public_key, Network::Regtest))
|
||||
.try_into()
|
||||
.unwrap(),
|
||||
networks::bitcoin::Address::new(Address::p2pkh(public_key, Network::Regtest))
|
||||
.unwrap()
|
||||
.into(),
|
||||
)
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user