display slatepack addresses (#808)

This commit is contained in:
wiesche
2026-09-15 20:34:26 +02:00
committed by GitHub
parent 991ba1a1f7
commit 18da793ace
+4 -4
View File
@@ -16,10 +16,10 @@ use crate::core::core::FeeFields;
use crate::core::core::{self, amount_to_hr_string};
use crate::core::global;
use crate::libwallet::{
AcctPathMapping, Error, OutputCommitMapping, OutputStatus, TxLogEntry, ViewWallet, WalletInfo,
AcctPathMapping, Error, OutputCommitMapping, OutputStatus, SlatepackAddress, TxLogEntry,
ViewWallet, WalletInfo,
};
use crate::util::ToHex;
use grin_wallet_util::OnionV3Address;
use prettytable;
use std::io::prelude::Write;
use term;
@@ -614,7 +614,7 @@ pub fn payment_proof(tx: &TxLogEntry) -> Result<(), Error> {
writeln!(
t,
"Receiver Address: {}",
OnionV3Address::from_bytes(pp.receiver_address.to_bytes())
SlatepackAddress::new(&pp.receiver_address)
)
.unwrap();
writeln!(t, "Receiver Signature: {}", receiver_signature).unwrap();
@@ -623,7 +623,7 @@ pub fn payment_proof(tx: &TxLogEntry) -> Result<(), Error> {
writeln!(
t,
"Sender Address: {}",
OnionV3Address::from_bytes(pp.sender_address.to_bytes())
SlatepackAddress::new(&pp.sender_address)
)
.unwrap();
writeln!(t, "Sender Signature: {}", sender_signature).unwrap();