add index into qrcode
This commit is contained in:
parent
445a8c1334
commit
7483988c53
@ -124,7 +124,11 @@ impl State for ReceivePanel {
|
||||
match res {
|
||||
Ok((address, derivation_index)) => {
|
||||
self.warning = None;
|
||||
self.qr_code = Some(qr_code::State::new(address.to_qr_uri()).unwrap());
|
||||
self.qr_code = qr_code::State::new(format!(
|
||||
"bitcoin:{}?index={}",
|
||||
address, derivation_index
|
||||
))
|
||||
.ok();
|
||||
self.addresses.list.push(address);
|
||||
self.addresses.derivation_indexes.push(derivation_index);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user