From 6f5230a9017702b7861c9afeac1ced5100599b80 Mon Sep 17 00:00:00 2001 From: Arni Hod Date: Sun, 11 Aug 2024 18:20:15 +0300 Subject: [PATCH] chore: small refactor deploy_account --- crates/blockifier/src/transaction/transactions.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/blockifier/src/transaction/transactions.rs b/crates/blockifier/src/transaction/transactions.rs index 8bdd466b50..a2b6f9a900 100644 --- a/crates/blockifier/src/transaction/transactions.rs +++ b/crates/blockifier/src/transaction/transactions.rs @@ -332,7 +332,8 @@ impl DeployAccountTransaction { (constructor_calldata, Calldata), (contract_address_salt, ContractAddressSalt), (nonce, Nonce), - (signature, TransactionSignature) + (signature, TransactionSignature), + (version, TransactionVersion) ); pub fn tx(&self) -> &starknet_api::transaction::DeployAccountTransaction { @@ -373,9 +374,9 @@ impl TransactionInfoCreator for DeployAccountTransaction { fn create_tx_info(&self) -> TransactionInfo { let common_fields = CommonAccountFields { transaction_hash: self.tx_hash, - version: self.tx.version(), - signature: self.tx.signature(), - nonce: self.tx.nonce(), + version: self.version(), + signature: self.signature(), + nonce: self.nonce(), sender_address: self.contract_address, only_query: self.only_query, };