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
// let builder = RunnableBuilder::new(sierra_program, Some(MetadataComputationConfig::default()))
312
-
// .with_context(|| "Failed to create builder")?;
313
-
//
314
-
// let name_suffix = module_name.to_string() + "::main";
315
-
// let func = runner.find_function(name_suffix.as_str())
316
-
// .context("Failed to find main function in script - please make sure `sierra-replace-ids` is not set to `false` for `dev` profile in script's Scarb.toml")?;
317
-
//
318
-
// let entry_code_config = EntryCodeConfig::testing();
319
-
// let casm_program_wrapper_info = builder.create_wrapper_info(func, entry_code_config)?;
320
-
// let entry_code = casm_program_wrapper_info.header;
321
-
// let builtins = casm_program_wrapper_info.builtins;
322
-
// let footer = create_code_footer();
323
-
//
324
-
// // import from cairo-lang-runner
325
-
// let assembled_program = builder
326
-
// .casm_program()
327
-
// .clone()
328
-
// .assemble_ex(&entry_code, &footer);
329
-
// let (hints_dict, string_to_hint) = hints_to_params(assembled_program.hints);
330
-
//
331
-
// // hint processor
332
-
// let mut context = build_context(
333
-
// &SerializableBlockInfo::default().into(),
334
-
// None,
335
-
// &TrackedResource::CairoSteps,
336
-
// );
337
-
//
338
-
// let mut blockifier_state = CachedState::new(DictStateReader::default());
339
-
//
340
-
// // TODO(#2954)
341
-
// let param_types = builder.generic_id_and_size_from_concrete(&func.signature.param_types);
342
-
//
343
-
// let segment_index = syscall_handler_offset(builtins.len(), has_segment_arena(¶m_types));
344
-
// let syscall_handler = SyscallHintProcessor::new(
345
-
// &mut blockifier_state,
346
-
// &mut context,
347
-
// // This segment is created by SierraCasmRunner
348
-
// Relocatable {
349
-
// segment_index: segment_index
350
-
// .try_into()
351
-
// .expect("Failed to convert index to isize"),
352
-
// offset: 0,
353
-
// },
354
-
// ExecutableCallEntryPoint::default(),
355
-
// &string_to_hint,
356
-
// ReadOnlySegments::default(),
357
-
// );
358
-
//
359
-
// let account = if config.account.is_empty() {
360
-
// None
361
-
// } else {
362
-
// Some(tokio_runtime.block_on(get_account(
363
-
// &config.account,
364
-
// &config.accounts_file,
365
-
// provider,
366
-
// config.keystore.clone(),
367
-
// ))?)
368
-
// };
369
-
// let state = StateManager::from(_state_file_path)?;
RunnableBuilder::new(sierra_program,None).with_context(|| "Failed to create builder")?;
313
+
314
+
let name_suffix = module_name.to_string() + "::main";
315
+
let func = runner.find_function(name_suffix.as_str())
316
+
.context("Failed to find main function in script - please make sure `sierra-replace-ids` is not set to `false` for `dev` profile in script's Scarb.toml")?;
317
+
318
+
let entry_code_config = EntryCodeConfig::testing();
319
+
let casm_program_wrapper_info = builder.create_wrapper_info(func, entry_code_config)?;
320
+
let entry_code = casm_program_wrapper_info.header;
321
+
let builtins = casm_program_wrapper_info.builtins;
0 commit comments