Skip to content

Commit 4b8a17a

Browse files
committed
Make sure that wait_for_spend produces the output instances in order or output index
1 parent 07d5e0d commit 4b8a17a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matt/manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ def wait_for_spend(self, instances: Union[ContractInstance, List[ContractInstanc
621621
raise ValueError("Unsupported contract type")
622622
instance.next = next_instances
623623

624-
result = list(out_contracts.values())
624+
result = [out_contracts[idx] for idx in sorted(out_contracts.keys())]
625625
for instance in result:
626626
self.add_instance(instance)
627627
return result

0 commit comments

Comments
 (0)