Skip to content

Commit

Permalink
chore: add enable revert flag to versioned constants (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
meship-starkware authored Sep 22, 2024
1 parent 5683fd4 commit fd954e1
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/blockifier/resources/versioned_constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
]
},
"disable_cairo0_redeclaration": true,
"enable_reverts": true,
"max_recursion_depth": 50,
"segment_arena_cells": false,
"os_constants": {
Expand Down
1 change: 1 addition & 0 deletions crates/blockifier/resources/versioned_constants_13_0.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"max_recursion_depth": 50,
"segment_arena_cells": true,
"disable_cairo0_redeclaration": false,
"enable_reverts": false,
"tx_event_limits": {
"max_data_length": 1000000000,
"max_keys_length": 1000000000,
Expand Down
1 change: 1 addition & 0 deletions crates/blockifier/resources/versioned_constants_13_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"max_recursion_depth": 50,
"segment_arena_cells": true,
"disable_cairo0_redeclaration": false,
"enable_reverts": false,
"os_constants": {
"nop_entry_point_offset": -1,
"entry_point_type_external": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"max_recursion_depth": 50,
"segment_arena_cells": true,
"disable_cairo0_redeclaration": false,
"enable_reverts": false,
"os_constants": {
"nop_entry_point_offset": -1,
"entry_point_type_external": 0,
Expand Down
1 change: 1 addition & 0 deletions crates/blockifier/resources/versioned_constants_13_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
]
},
"disable_cairo0_redeclaration": true,
"enable_reverts": false,
"max_recursion_depth": 50,
"segment_arena_cells": false,
"os_constants": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"disable_cairo0_redeclaration": true,
"max_recursion_depth": 50,
"enable_reverts": false,
"segment_arena_cells": false,
"os_constants": {
"block_hash_contract_address": 1,
Expand Down
3 changes: 3 additions & 0 deletions crates/blockifier/src/versioned_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ pub struct VersionedConstants {
// Transactions settings.
pub disable_cairo0_redeclaration: bool,

// Compiler settings.
pub enable_reverts: bool,

// Cairo OS constants.
// Note: if loaded from a json file, there are some assumptions made on its structure.
// See the struct's docstring for more details.
Expand Down

0 comments on commit fd954e1

Please sign in to comment.