diff --git a/crates/blockifier/src/transaction/transactions.rs b/crates/blockifier/src/transaction/transactions.rs index 262acbb657..64b8235de6 100644 --- a/crates/blockifier/src/transaction/transactions.rs +++ b/crates/blockifier/src/transaction/transactions.rs @@ -135,16 +135,6 @@ pub struct DeclareTransaction { pub class_info: ClassInfo, } -impl TryFrom for DeclareTransaction { - type Error = TransactionExecutionError; - - fn try_from( - declare_tx: starknet_api::executable_transaction::DeclareTransaction, - ) -> Result { - Self::new_from_executable_tx(declare_tx, false) - } -} - impl DeclareTransaction { fn create( declare_tx: starknet_api::transaction::DeclareTransaction, @@ -173,17 +163,6 @@ impl DeclareTransaction { Self::create(declare_tx, tx_hash, class_info, true) } - fn new_from_executable_tx( - declare_tx: starknet_api::executable_transaction::DeclareTransaction, - only_query: bool, - ) -> Result { - let starknet_api::executable_transaction::DeclareTransaction { tx, tx_hash, class_info } = - declare_tx; - let class_info: ClassInfo = class_info.try_into()?; - - Self::create(tx, tx_hash, class_info, only_query) - } - implement_inner_tx_getter_calls!( (class_hash, ClassHash), (nonce, Nonce),