Add to_qr_uri() method on Address type

This commit is contained in:
thunderbiscuit
2023-03-23 17:03:40 -04:00
parent cbd44249f3
commit cd10c75e96
3 changed files with 23 additions and 7 deletions

View File

@@ -440,6 +440,8 @@ interface Address {
Network network();
Script script_pubkey();
string to_qr_uri();
};
[Enum]

View File

@@ -381,6 +381,10 @@ impl Address {
script: self.address.script_pubkey(),
})
}
fn to_qr_uri(&self) -> String {
self.address.to_qr_uri()
}
}
/// The method used to produce an address.