Rename build_tx_lock_psbt to send_to_address

Being defined on the wallet itself, a more generic name fits better
on what this function actually does.
This commit is contained in:
Thomas Eizinger 2021-02-26 10:18:47 +11:00
parent 67fe01a2ef
commit 32cb0eb896
No known key found for this signature in database
GPG key ID: 651AC83A6C6C8B96
2 changed files with 7 additions and 8 deletions

View file

@ -19,7 +19,7 @@ impl TxLock {
.address(wallet.get_network().await)
.expect("can derive address from descriptor");
let psbt = wallet.build_tx_lock_psbt(address, amount).await?;
let psbt = wallet.send_to_address(address, amount).await?;
Ok(Self {
inner: psbt,