From 8f9824d58e045c33b1dbf6a70c1986f2a71b22f4 Mon Sep 17 00:00:00 2001 From: rishflab Date: Fri, 24 Sep 2021 14:33:07 +1000 Subject: [PATCH] Print address instead of subaddress --- swap/src/protocol/bob/swap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swap/src/protocol/bob/swap.rs b/swap/src/protocol/bob/swap.rs index a8b71738..7a2644e1 100644 --- a/swap/src/protocol/bob/swap.rs +++ b/swap/src/protocol/bob/swap.rs @@ -217,7 +217,7 @@ async fn next_state( tracing::info!("Private view key: {}", serde_json::to_string(&view_key)?); - let address = monero::Address::subaddress(monero::Network::Mainnet, monero::PublicKey::from_private_key(&spend_key), monero::PublicKey::from(view_key.public())); + let address = monero::Address::standard(monero::Network::Mainnet, monero::PublicKey::from_private_key(&spend_key), monero::PublicKey::from(view_key.public())); tracing::info!("Address: {}", address.to_string()); let wallet_file_name = swap_id.to_string();