Add to_qr_uri() method on Address type
This commit is contained in:
@@ -440,6 +440,8 @@ interface Address {
|
||||
Network network();
|
||||
|
||||
Script script_pubkey();
|
||||
|
||||
string to_qr_uri();
|
||||
};
|
||||
|
||||
[Enum]
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user