Refactor: combine Program.hints
and Program.hints_ranges
into a custom collection
#1342
Labels
Program.hints
and Program.hints_ranges
into a custom collection
#1342
Currently, the
Program
struct contains two fieldshints
andhints_ranges
, where the second one is used to index the first.cairo-vm/vm/src/types/program.rs
Lines 51 to 53 in 7e5378a
As they are strongly related two each other, they should be combined into a single collection that encapsulates the creation and indexing of hints. Some related functionality would be:
Program::flatten_hints
(a kind of constructor for it),cairo-vm/vm/src/types/program.rs
Lines 121 to 124 in 7e5378a
cairo-vm/vm/src/vm/runners/cairo_runner.rs
Lines 589 to 595 in 7e5378a
The text was updated successfully, but these errors were encountered: