Skip to content

Commit

Permalink
chore: small refactor invoke account transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Aug 14, 2024
1 parent 7409907 commit b4ad7de
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions crates/blockifier/src/transaction/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,10 @@ impl InvokeTransaction {

implement_inner_tx_getter_calls!(
(calldata, Calldata),
(nonce, Nonce),
(signature, TransactionSignature),
(sender_address, ContractAddress)
(sender_address, ContractAddress),
(version, TransactionVersion)
);
}

Expand Down Expand Up @@ -486,10 +488,10 @@ impl TransactionInfoCreator for InvokeTransaction {
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(),
sender_address: self.tx.sender_address(),
version: self.version(),
signature: self.signature(),
nonce: self.nonce(),
sender_address: self.sender_address(),
only_query: self.only_query,
};

Expand Down

0 comments on commit b4ad7de

Please sign in to comment.