Skip to content

Commit

Permalink
fix: add bytecode instances in reverse (#11064)
Browse files Browse the repository at this point in the history
Since we cache hints from earlier instances, when receiving hints for
instances we keep the earliest hints

Co-authored-by: David Banks <[email protected]>
  • Loading branch information
IlyasRidhuan and dbanks12 authored Jan 6, 2025
1 parent d9a14d2 commit 036496c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ struct ExecutionHints {
std::vector<ContractInstanceHint> contract_instance_hints_vec;
read(it, contract_instance_hints_vec);
std::map<FF, ContractInstanceHint> contract_instance_hints;
for (const auto& instance : contract_instance_hints_vec) {
for (const auto& instance : std::views::reverse(contract_instance_hints_vec)) {
contract_instance_hints[instance.address] = instance;
}

Expand Down

0 comments on commit 036496c

Please sign in to comment.