Correct processor docker tests encoding of Bitcoin addresses in OutInstructions

This commit is contained in:
Luke Parker 2024-05-21 08:49:57 -04:00
parent a473800c26
commit ac709b2945
No known key found for this signature in database

View file

@ -519,7 +519,12 @@ impl Wallet {
match self {
Wallet::Bitcoin { public_key, .. } => {
use bitcoin_serai::bitcoin::ScriptBuf;
ExternalAddress::new(ScriptBuf::new_p2pkh(&public_key.pubkey_hash()).into()).unwrap()
ExternalAddress::new(
networks::bitcoin::Address::new(ScriptBuf::new_p2pkh(&public_key.pubkey_hash()))
.unwrap()
.into(),
)
.unwrap()
}
Wallet::Ethereum { key, .. } => ExternalAddress::new(
ethereum_serai::crypto::address(&(ciphersuite::Secp256k1::generator() * key)).into(),