Skip to content

Commit

Permalink
chore: small refactor deploy_account
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Aug 12, 2024
1 parent f92adc2 commit 6f5230a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/blockifier/src/transaction/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
};
Expand Down

0 comments on commit 6f5230a

Please sign in to comment.