Skip to content

Commit

Permalink
chore: update to latest external tx format
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Apr 8, 2024
1 parent e227c15 commit 0705a78
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions crates/gateway/src/starknet_api_test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use starknet_api::data_availability::DataAvailabilityMode;
use starknet_api::external_transaction::{
DataAvailabilityMode, ExternalDeclareTransaction, ExternalDeclareTransactionV3,
ExternalDeployAccountTransaction, ExternalDeployAccountTransactionV3,
ExternalInvokeTransaction, ExternalInvokeTransactionV3, ExternalTransaction,
ExternalDeclareTransaction, ExternalDeclareTransactionV3, ExternalDeployAccountTransaction,
ExternalDeployAccountTransactionV3, ExternalInvokeTransaction, ExternalInvokeTransactionV3,
ExternalTransaction,
};
use starknet_api::transaction::{ResourceBounds, ResourceBoundsMapping, TransactionVersion};
use starknet_api::transaction::{ResourceBounds, ResourceBoundsMapping};

// Utils.
pub fn create_external_declare_tx_for_testing() -> ExternalTransaction {
Expand All @@ -20,8 +21,6 @@ pub fn create_external_declare_tx_for_testing() -> ExternalTransaction {
fee_data_availability_mode: DataAvailabilityMode::L1,
paymaster_data: Default::default(),
account_deployment_data: Default::default(),
version: TransactionVersion::THREE,
r#type: Default::default(),
},
))
}
Expand All @@ -39,8 +38,6 @@ pub fn create_external_deploy_account_tx_for_testing() -> ExternalTransaction {
nonce_data_availability_mode: DataAvailabilityMode::L1,
fee_data_availability_mode: DataAvailabilityMode::L1,
paymaster_data: Default::default(),
version: TransactionVersion::THREE,
r#type: Default::default(),
},
))
}
Expand All @@ -57,8 +54,6 @@ pub fn create_external_invoke_tx_for_testing() -> ExternalTransaction {
fee_data_availability_mode: DataAvailabilityMode::L1,
paymaster_data: Default::default(),
account_deployment_data: Default::default(),
version: TransactionVersion::THREE,
r#type: Default::default(),
}))
}

Expand Down

0 comments on commit 0705a78

Please sign in to comment.