@@ -10,18 +10,8 @@ use starknet_api::executable_transaction::{
1010 InvokeTransaction ,
1111 L1HandlerTransaction ,
1212} ;
13- use starknet_api:: transaction:: fields:: {
14- AccountDeploymentData ,
15- Calldata ,
16- Fee ,
17- TransactionSignature ,
18- } ;
19- use starknet_api:: transaction:: {
20- constants,
21- DeclareTransactionV2 ,
22- DeclareTransactionV3 ,
23- TransactionVersion ,
24- } ;
13+ use starknet_api:: transaction:: fields:: { AccountDeploymentData , Calldata } ;
14+ use starknet_api:: transaction:: { constants, DeclareTransactionV2 , DeclareTransactionV3 } ;
2515
2616use crate :: context:: { BlockContext , GasCounter , TransactionContext } ;
2717use crate :: execution:: call_info:: CallInfo ;
@@ -40,11 +30,9 @@ use crate::transaction::objects::{
4030 CommonAccountFields ,
4131 CurrentTransactionInfo ,
4232 DeprecatedTransactionInfo ,
43- HasRelatedFeeType ,
4433 TransactionExecutionInfo ,
4534 TransactionExecutionResult ,
4635 TransactionInfo ,
47- TransactionInfoCreator ,
4836 TransactionInfoCreatorInner ,
4937} ;
5038#[ cfg( test) ]
@@ -115,16 +103,6 @@ pub trait ValidatableTransaction {
115103 ) -> TransactionExecutionResult < Option < CallInfo > > ;
116104}
117105
118- impl HasRelatedFeeType for L1HandlerTransaction {
119- fn version ( & self ) -> TransactionVersion {
120- self . tx . version
121- }
122-
123- fn is_l1_handler ( & self ) -> bool {
124- true
125- }
126- }
127-
128106impl < S : State > Executable < S > for L1HandlerTransaction {
129107 fn run_execute (
130108 & self ,
@@ -159,22 +137,6 @@ impl<S: State> Executable<S> for L1HandlerTransaction {
159137 }
160138}
161139
162- impl TransactionInfoCreator for L1HandlerTransaction {
163- fn create_tx_info ( & self ) -> TransactionInfo {
164- TransactionInfo :: Deprecated ( DeprecatedTransactionInfo {
165- common_fields : CommonAccountFields {
166- transaction_hash : self . tx_hash ,
167- version : self . tx . version ,
168- signature : TransactionSignature :: default ( ) ,
169- nonce : self . tx . nonce ,
170- sender_address : self . tx . contract_address ,
171- only_query : false ,
172- } ,
173- max_fee : Fee :: default ( ) ,
174- } )
175- }
176- }
177-
178140impl TransactionInfoCreatorInner for AccountTransaction {
179141 fn create_tx_info ( & self , only_query : bool ) -> TransactionInfo {
180142 match self {
0 commit comments