From 0705a78875c940877da5741abfe1fb68660b04dc Mon Sep 17 00:00:00 2001 From: Arni Hod Date: Mon, 8 Apr 2024 13:32:31 +0300 Subject: [PATCH] chore: update to latest external tx format --- crates/gateway/src/starknet_api_test_utils.rs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/crates/gateway/src/starknet_api_test_utils.rs b/crates/gateway/src/starknet_api_test_utils.rs index d437b8f77..7834a0785 100644 --- a/crates/gateway/src/starknet_api_test_utils.rs +++ b/crates/gateway/src/starknet_api_test_utils.rs @@ -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 { @@ -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(), }, )) } @@ -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(), }, )) } @@ -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(), })) }