Skip to content

Commit

Permalink
Sort inputs for null unlocks (#2203)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaughterOfMars authored Mar 26, 2024
1 parent 19b0f83 commit 826e63d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl TransactionBuilder {
let mut block_indexes = HashMap::<Address, usize>::new();

// Assuming inputs_data is ordered by address type
for (current_block_index, input) in self.selected_inputs.iter().enumerate() {
for (current_block_index, input) in self.selected_inputs.sorted_iter().enumerate() {
// Get the address that is required to unlock the input
let required_address = input
.output
Expand Down

0 comments on commit 826e63d

Please sign in to comment.