diff --git a/crates/blockifier/resources/versioned_constants.json b/crates/blockifier/resources/versioned_constants.json index 99ee14fe00..f4d859c97d 100644 --- a/crates/blockifier/resources/versioned_constants.json +++ b/crates/blockifier/resources/versioned_constants.json @@ -24,6 +24,7 @@ ] }, "disable_cairo0_redeclaration": true, + "enable_reverts": true, "max_recursion_depth": 50, "segment_arena_cells": false, "os_constants": { diff --git a/crates/blockifier/resources/versioned_constants_13_0.json b/crates/blockifier/resources/versioned_constants_13_0.json index ccec31daba..d13b6c57c6 100644 --- a/crates/blockifier/resources/versioned_constants_13_0.json +++ b/crates/blockifier/resources/versioned_constants_13_0.json @@ -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, diff --git a/crates/blockifier/resources/versioned_constants_13_1.json b/crates/blockifier/resources/versioned_constants_13_1.json index 932e4a27ff..dea6bed849 100644 --- a/crates/blockifier/resources/versioned_constants_13_1.json +++ b/crates/blockifier/resources/versioned_constants_13_1.json @@ -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, diff --git a/crates/blockifier/resources/versioned_constants_13_1_1.json b/crates/blockifier/resources/versioned_constants_13_1_1.json index 13b98c9a6d..8eb58a3a5b 100644 --- a/crates/blockifier/resources/versioned_constants_13_1_1.json +++ b/crates/blockifier/resources/versioned_constants_13_1_1.json @@ -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, diff --git a/crates/blockifier/resources/versioned_constants_13_2.json b/crates/blockifier/resources/versioned_constants_13_2.json index 31b2e4be56..f7b93716a2 100644 --- a/crates/blockifier/resources/versioned_constants_13_2.json +++ b/crates/blockifier/resources/versioned_constants_13_2.json @@ -24,6 +24,7 @@ ] }, "disable_cairo0_redeclaration": true, + "enable_reverts": false, "max_recursion_depth": 50, "segment_arena_cells": false, "os_constants": { diff --git a/crates/blockifier/resources/versioned_constants_13_2_1.json b/crates/blockifier/resources/versioned_constants_13_2_1.json index 206140144f..4ec50e4dcb 100644 --- a/crates/blockifier/resources/versioned_constants_13_2_1.json +++ b/crates/blockifier/resources/versioned_constants_13_2_1.json @@ -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, diff --git a/crates/blockifier/src/versioned_constants.rs b/crates/blockifier/src/versioned_constants.rs index 992960eae6..1ac9279637 100644 --- a/crates/blockifier/src/versioned_constants.rs +++ b/crates/blockifier/src/versioned_constants.rs @@ -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.