Skip to content

Commit

Permalink
Sort_ecdsa_and_mod_builtins_private_inputs_by_idx
Browse files Browse the repository at this point in the history
  • Loading branch information
YairVaknin-starkware committed Oct 14, 2024
1 parent 3fb0344 commit eb93b6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vm/src/vm/runners/builtin_runner/modulo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ impl ModBuiltinRunner {
});
}

instances.sort_by_key(|input| input.index);

vec![PrivateInput::Mod(ModInput {
instances,
zero_value_address: relocation_table
Expand Down
4 changes: 4 additions & 0 deletions vm/src/vm/runners/builtin_runner/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ impl SignatureBuiltinRunner {
}))
}
}
private_inputs.sort_by_key(|input| match input {
PrivateInput::Signature(sig) => sig.index,
_ => unreachable!(),
});
private_inputs
}
}
Expand Down

0 comments on commit eb93b6f

Please sign in to comment.