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