Skip to content

Commit

Permalink
refactor(blockifier): versioned constant
Browse files Browse the repository at this point in the history
  • Loading branch information
AvivYossef-starkware committed Aug 28, 2024
1 parent c0a128c commit 54eab56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/blockifier/resources/versioned_constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
"l1_gas_index": 0,
"l1_handler_version": 0,
"l2_gas": "L2_GAS",
"l1_data_gas": "L1_Data",
"l1_data_gas_index": 2,
"l2_gas_index": 1,
"library_call_gas_cost": {
"entry_point_gas_cost": 1,
Expand Down
4 changes: 3 additions & 1 deletion crates/blockifier/src/versioned_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ impl OsConstants {
// not used by the blockifier but included for transparency. These constanst will be ignored
// during the creation of the struct containing the gas costs.

const ADDITIONAL_FIELDS: [&'static str; 25] = [
const ADDITIONAL_FIELDS: [&'static str; 27] = [
"block_hash_contract_address",
"constructor_entry_point_selector",
"default_entry_point_selector",
Expand All @@ -529,6 +529,8 @@ impl OsConstants {
"l1_handler_version",
"l2_gas",
"l2_gas_index",
"l1_data_gas",
"l1_data_gas_index",
"nop_entry_point_offset",
"sierra_array_len_bound",
"stored_block_hash_buffer",
Expand Down

0 comments on commit 54eab56

Please sign in to comment.