diff --git a/controller/src/display.rs b/controller/src/display.rs index e5f2f88..f94a855 100644 --- a/controller/src/display.rs +++ b/controller/src/display.rs @@ -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();