Skip to content

Commit

Permalink
refactor(blockifier): clean runnable contract class code
Browse files Browse the repository at this point in the history
  • Loading branch information
noaov1 committed Nov 3, 2024
1 parent e9f3ebe commit 2d46dbe
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 37 deletions.
15 changes: 0 additions & 15 deletions crates/blockifier/src/test_utils/struct_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use crate::bouncer::{BouncerConfig, BouncerWeights, BuiltinCount};
use crate::context::{BlockContext, ChainInfo, FeeTokenAddresses, TransactionContext};
use crate::execution::call_info::{CallExecution, CallInfo, Retdata};
use crate::execution::common_hints::ExecutionMode;
use crate::execution::contract_class::{ContractClassV0, ContractClassV1};
use crate::execution::entry_point::{
CallEntryPoint,
EntryPointExecutionContext,
Expand Down Expand Up @@ -230,20 +229,6 @@ impl LoadFile for CasmContractClass {
}
}

impl ContractClassV0 {
pub fn from_file(contract_path: &str) -> Self {
let raw_contract_class = get_raw_contract_class(contract_path);
Self::try_from_json_string(&raw_contract_class).unwrap()
}
}

impl ContractClassV1 {
pub fn from_file(contract_path: &str) -> Self {
let raw_contract_class = get_raw_contract_class(contract_path);
Self::try_from_json_string(&raw_contract_class).unwrap()
}
}

impl L1HandlerTransaction {
pub fn create_for_testing(l1_fee: Fee, contract_address: ContractAddress) -> Self {
let calldata = calldata![
Expand Down
2 changes: 0 additions & 2 deletions crates/native_blockifier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ pub mod py_invoke_function;
pub mod py_l1_handler;
pub mod py_objects;
pub mod py_state_diff;
#[cfg(any(feature = "testing", test))]
pub mod py_test_utils;
// TODO(Dori, 1/4/2023): If and when supported in the Python build environment, use #[cfg(test)].
pub mod py_testing_wrappers;
pub mod py_transaction;
Expand Down
20 changes: 0 additions & 20 deletions crates/native_blockifier/src/py_test_utils.rs

This file was deleted.

0 comments on commit 2d46dbe

Please sign in to comment.