Skip to content

Commit

Permalink
Make sure that wait_for_spend produces the output instances in order …
Browse files Browse the repository at this point in the history
…or output index
  • Loading branch information
bigspider committed Apr 28, 2024
1 parent 07d5e0d commit 4b8a17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matt/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def wait_for_spend(self, instances: Union[ContractInstance, List[ContractInstanc
raise ValueError("Unsupported contract type")
instance.next = next_instances

result = list(out_contracts.values())
result = [out_contracts[idx] for idx in sorted(out_contracts.keys())]
for instance in result:
self.add_instance(instance)
return result
Expand Down

0 comments on commit 4b8a17a

Please sign in to comment.