Skip to content

Commit dc70445

Browse files
native_blockifier: remove native classes whitelist from config (#12479)
1 parent 15ce9d4 commit dc70445

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

crates/native_blockifier/src/py_objects.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@ pub struct PyCairoNativeRunConfig {
264264
pub run_cairo_native: bool,
265265
pub wait_on_native_compilation: bool,
266266
pub channel_size: usize,
267-
// Determines which contracts are allowd to run Cairo Native. `None` → All.
268-
// TODO(Arni): remove this field and update the pythonic struct.
269-
pub native_classes_whitelist: Option<Vec<PyFelt>>,
270267
pub panic_on_compilation_failure: bool,
271268
}
272269

@@ -276,16 +273,13 @@ impl Default for PyCairoNativeRunConfig {
276273
run_cairo_native: false,
277274
wait_on_native_compilation: false,
278275
channel_size: DEFAULT_COMPILATION_REQUEST_CHANNEL_SIZE,
279-
native_classes_whitelist: None,
280276
panic_on_compilation_failure: false,
281277
}
282278
}
283279
}
284280

285281
impl From<PyCairoNativeRunConfig> for CairoNativeRunConfig {
286282
fn from(py_cairo_native_run_config: PyCairoNativeRunConfig) -> Self {
287-
// NOTE: native_classes_whitelist is ignored here for cross-repo compatibility until the
288-
// pythonic struct is updated.
289283
let cairo_native_mode = match (
290284
py_cairo_native_run_config.run_cairo_native,
291285
py_cairo_native_run_config.wait_on_native_compilation,

0 commit comments

Comments
 (0)