You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Copied from https://github.com/starkware-libs/sequencer/blob/545761f29b859d06f125bd6c332b6182845734f0/crates/blockifier/src/execution/entry_point_execution.rs#L145
40
-
fnprepare_program_extra_data(
41
-
runner:&mutCairoRunner,
42
-
contract_class:&CompiledClassV1,
43
-
read_only_segments:&mutReadOnlySegments,
44
-
gas_costs:&GasCosts,
45
-
) -> Result<usize,PreExecutionError>{
46
-
// Create the builtin cost segment, the builtin order should be the same as the price builtin
47
-
// array in the os in compiled_class.cairo in load_compiled_class_facts.
48
-
let builtin_price_array = [
49
-
gas_costs.builtins.pedersen,
50
-
gas_costs.builtins.bitwise,
51
-
gas_costs.builtins.ecop,
52
-
gas_costs.builtins.poseidon,
53
-
gas_costs.builtins.add_mod,
54
-
gas_costs.builtins.mul_mod,
55
-
];
56
-
57
-
let data = builtin_price_array
58
-
.iter()
59
-
.map(|&x| MaybeRelocatable::from(Felt::from(x)))
60
-
.collect::<Vec<_>>();
61
-
let builtin_cost_segment_start = read_only_segments.allocate(&mut runner.vm,&data)?;
62
-
63
-
// Put a pointer to the builtin cost segment at the end of the program (after the
// Copied from https://github.com/starkware-libs/sequencer/blob/0e1e92e0b90790e4bec20721c069c312d6a60a13/crates/blockifier/src/execution/entry_point_execution.rs#L98
0 commit comments