Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
update services api
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l committed Jun 5, 2024
1 parent 9784e74 commit 8e182f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/services/api/contract_classes/compiled_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ use crate::{ContractEntryPoint, EntryPointType};

use super::deprecated_contract_class::ContractClass;
use cairo_lang_sierra::program::Program as SierraProgram;
use cairo_lang_starknet::abi::Contract;
use cairo_lang_starknet::casm_contract_class::CasmContractClass;
use cairo_lang_starknet::contract_class::{
use cairo_lang_starknet_classes::abi::Contract;
use cairo_lang_starknet_classes::casm_contract_class::CasmContractClass;
use cairo_lang_starknet_classes::contract_class::{
ContractClass as SierraContractClass, ContractEntryPoints,
};
use cairo_lang_utils::bigint::BigUintAsHex;
Expand Down Expand Up @@ -87,7 +87,8 @@ impl From<StarknetRsContractClass> for CompiledClass {
sierra_cc.extract_sierra_program().unwrap(),
sierra_cc.entry_points_by_type.clone(),
));
let casm_cc = CasmContractClass::from_contract_class(sierra_cc, true).unwrap();
let casm_cc =
CasmContractClass::from_contract_class(sierra_cc, true, usize::MAX).unwrap(); // todo: check if usize::MAX is good here

CompiledClass::Casm {
casm: Arc::new(casm_cc),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::core::contract_address::compute_hinted_class_hash;
use crate::services::api::contract_class_errors::ContractClassError;
use cairo_vm::serde::deserialize_program::{
deserialize_array_of_bigint_hex, Attribute, BuiltinName, HintParams, Identifier,
ReferenceManager,
deserialize_array_of_bigint_hex, Attribute, HintParams, Identifier, ReferenceManager,
};
use cairo_vm::types::builtin_name::BuiltinName;
use cairo_vm::types::relocatable::MaybeRelocatable;
use cairo_vm::types::{errors::program_errors::ProgramError, program::Program};
use cairo_vm::utils::PRIME_STR;
Expand Down

0 comments on commit 8e182f7

Please sign in to comment.