Skip to content

Commit

Permalink
fix: deeplink to rfc spec (#5342)
Browse files Browse the repository at this point in the history
Description
---
Fixes the console wallet  QR code deeplink to RFC spec

Motivation and Context
---
The current QR code does not follow
[RFC-0154](https://rfc.tari.com/RFC-0154_DeepLinksConvencion.html)

How Has This Been Tested?
---
Manual 

What process can a PR reviewer use to test or verify this change?
---
Run a Console wallet and inspect the QR code
  • Loading branch information
SWvheerden committed May 12, 2023
1 parent bb87783 commit 806d3b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion applications/tari_console_wallet/src/ui/state/app_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,11 @@ pub struct EventListItem {
impl AppStateData {
pub fn new(wallet_identity: &WalletIdentity, base_node_selected: Peer, base_node_config: PeerConfig) -> Self {
let eid = wallet_identity.address.to_emoji_string();
let qr_link = format!("tari_address://{}", wallet_identity.address.to_hex());
let qr_link = format!(
"tari://{}/transactions/send?tariAddress={}",
wallet_identity.network,
wallet_identity.address.to_hex()
);
let code = QrCode::new(qr_link).unwrap();
let image = code
.render::<unicode::Dense1x2>()
Expand Down

0 comments on commit 806d3b8

Please sign in to comment.