Skip to content

Commit

Permalink
chore: simplify import in blockifier test utils (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware authored Nov 17, 2024
1 parent 3ff0dcf commit 863c886
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 2 additions & 3 deletions crates/blockifier/src/test_utils/declare.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
use starknet_api::contract_class::ClassInfo;
use starknet_api::test_utils::declare::DeclareTxArgs;
use starknet_api::test_utils::declare::{executable_declare_tx, DeclareTxArgs};

use crate::transaction::account_transaction::AccountTransaction;

pub fn declare_tx(declare_tx_args: DeclareTxArgs, class_info: ClassInfo) -> AccountTransaction {
let declare_tx =
starknet_api::test_utils::declare::executable_declare_tx(declare_tx_args, class_info);
let declare_tx = executable_declare_tx(declare_tx_args, class_info);

declare_tx.into()
}
7 changes: 2 additions & 5 deletions crates/blockifier/src/test_utils/deploy_account.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use starknet_api::test_utils::deploy_account::DeployAccountTxArgs;
use starknet_api::test_utils::deploy_account::{executable_deploy_account_tx, DeployAccountTxArgs};
use starknet_api::test_utils::NonceManager;

use crate::transaction::account_transaction::AccountTransaction;
Expand All @@ -7,10 +7,7 @@ pub fn deploy_account_tx(
deploy_tx_args: DeployAccountTxArgs,
nonce_manager: &mut NonceManager,
) -> AccountTransaction {
let deploy_account_tx = starknet_api::test_utils::deploy_account::executable_deploy_account_tx(
deploy_tx_args,
nonce_manager,
);
let deploy_account_tx = executable_deploy_account_tx(deploy_tx_args, nonce_manager);

deploy_account_tx.into()
}

0 comments on commit 863c886

Please sign in to comment.