Skip to content

Commit

Permalink
Remove unused code from snforge_std (#2798)
Browse files Browse the repository at this point in the history
  • Loading branch information
Draggu authored Dec 18, 2024
1 parent 0a935e3 commit 7218b4b
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 19 deletions.
3 changes: 1 addition & 2 deletions crates/forge/tests/integration/setup_fork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ fn fork_simple_decorator() {
use starknet::ContractAddress;
use starknet::Felt252TryIntoContractAddress;
use starknet::contract_address_const;
use snforge_std::{{ BlockTag, BlockId }};
#[starknet::interface]
trait IHelloStarknet<TContractState> {{
Expand Down Expand Up @@ -294,7 +293,7 @@ fn get_block_info_in_forked_block() {
use starknet::ContractAddress;
use starknet::ContractAddressIntoFelt252;
use starknet::contract_address_const;
use snforge_std::{{ BlockTag, BlockId, declare, ContractClassTrait, DeclareResultTrait }};
use snforge_std::{{ declare, ContractClassTrait, DeclareResultTrait }};
#[starknet::interface]
trait IBlockInfoChecker<TContractState> {{
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/integration/store_load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ fn fork_store_load() {
let test = test_utils::test_case!(formatdoc!(
r#"
use starknet::{{ ContractAddress, contract_address_const }};
use snforge_std::{{ BlockTag, BlockId, load, store }};
use snforge_std::{{ load, store }};
#[starknet::interface]
trait IHelloStarknet<TContractState> {{
Expand Down
1 change: 0 additions & 1 deletion snforge_std/src/cheatcodes.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use super::_cheatcode::handle_cheatcode;
pub mod events;
pub mod l1_handler;
pub mod contract_class;
pub mod fork;
pub mod storage;
pub mod execution_info;
pub mod message_to_l1;
Expand Down
12 changes: 0 additions & 12 deletions snforge_std/src/cheatcodes/fork.cairo

This file was deleted.

3 changes: 0 additions & 3 deletions snforge_std/src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ pub use cheatcodes::contract_class::DeclareResultTrait;
pub use cheatcodes::l1_handler::L1Handler;
pub use cheatcodes::l1_handler::L1HandlerTrait;

pub use cheatcodes::fork::BlockTag;
pub use cheatcodes::fork::BlockId;

pub use cheatcodes::events::Event;
pub use cheatcodes::events::EventSpy;
pub use cheatcodes::events::EventSpyTrait;
Expand Down

0 comments on commit 7218b4b

Please sign in to comment.