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

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
matias-gonz committed Apr 20, 2023
1 parent 726b09e commit 32fdc99
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/internals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use cairo_rs::vm::{
use felt::{felt_str, Felt252};
use lazy_static::lazy_static;
use num_traits::{Num, One, ToPrimitive, Zero};
use starknet_rs::core::errors::state_errors::StateError;
use starknet_rs::{
business_logic::{
execution::objects::{CallInfo, CallType, OrderedEvent, TransactionExecutionInfo},
Expand Down Expand Up @@ -45,6 +44,10 @@ use starknet_rs::{
services::api::contract_classes::deprecated_contract_class::{ContractClass, EntryPointType},
utils::{calculate_sn_keccak, felt_to_hash, Address, ClassHash},
};
use starknet_rs::{
core::errors::state_errors::StateError,
services::api::contract_classes::compiled_class::CompiledClass,
};
use std::{
collections::{HashMap, HashSet},
path::PathBuf,
Expand Down Expand Up @@ -587,7 +590,9 @@ fn expected_fee_transfer_info() -> CallInfo {

fn declare_tx() -> InternalDeclare {
InternalDeclare {
contract_class: get_contract_class(TEST_EMPTY_CONTRACT_PATH).unwrap(),
compiled_class: CompiledClass::Deprecated(Box::new(
get_contract_class(TEST_EMPTY_CONTRACT_PATH).unwrap(),
)),
class_hash: felt_to_hash(&TEST_EMPTY_CONTRACT_CLASS_HASH),
sender_address: TEST_ACCOUNT_CONTRACT_ADDRESS.clone(),
tx_type: TransactionType::Declare,
Expand Down

0 comments on commit 32fdc99

Please sign in to comment.