From 261b949ca2eb9653eff20cf0d9561d3b7a130fb4 Mon Sep 17 00:00:00 2001 From: Alex Coats Date: Tue, 26 Mar 2024 11:50:26 -0400 Subject: [PATCH] Sort inpouts for null unlocks --- .../api/block_builder/transaction_builder/requirement/mana.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/client/api/block_builder/transaction_builder/requirement/mana.rs b/sdk/src/client/api/block_builder/transaction_builder/requirement/mana.rs index beb67f235e..78ee783059 100644 --- a/sdk/src/client/api/block_builder/transaction_builder/requirement/mana.rs +++ b/sdk/src/client/api/block_builder/transaction_builder/requirement/mana.rs @@ -166,7 +166,7 @@ impl TransactionBuilder { let mut block_indexes = HashMap::::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