Skip to content

Commit

Permalink
Send ordinal first in recipient output (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph authored Oct 18, 2022
1 parent 251b16f commit 1a329a1
Show file tree
Hide file tree
Showing 2 changed files with 236 additions and 60 deletions.
11 changes: 8 additions & 3 deletions src/subcommand/wallet/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ impl Send {

let utxos = list_unspent(&options, &index)?.into_iter().collect();

let change = client
.call("getrawchangeaddress", &[])
.context("Could not get change addresses from wallet")?;
let change = vec![
client
.call("getrawchangeaddress", &[])
.context("Could not get change addresses from wallet")?,
client
.call("getrawchangeaddress", &[])
.context("Could not get change addresses from wallet")?,
];

let unsigned_transaction =
TransactionBuilder::build_transaction(utxos, self.ordinal, self.address, change)?;
Expand Down
Loading

0 comments on commit 1a329a1

Please sign in to comment.