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