Skip to content

Commit

Permalink
fix(transaction): add clone to declare tx (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
meship-starkware authored Jul 28, 2024
1 parent a65d3f9 commit 66e7f0c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/blockifier/src/transaction/account_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ mod flavors_test;
mod post_execution_test;

/// Represents a paid Starknet transaction.
#[derive(Debug)]
#[derive(Clone, Debug)]
pub enum AccountTransaction {
Declare(DeclareTransaction),
DeployAccount(DeployAccountTransaction),
Expand Down
2 changes: 1 addition & 1 deletion crates/blockifier/src/transaction/transaction_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use crate::transaction::transactions::{
};

// TODO: Move into transaction.rs, makes more sense to be defined there.
#[derive(Debug, derive_more::From)]
#[derive(Clone, Debug, derive_more::From)]
pub enum Transaction {
AccountTransaction(AccountTransaction),
L1HandlerTransaction(L1HandlerTransaction),
Expand Down
4 changes: 2 additions & 2 deletions crates/blockifier/src/transaction/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub trait ValidatableTransaction {
) -> TransactionExecutionResult<Option<CallInfo>>;
}

#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct DeclareTransaction {
pub tx: starknet_api::transaction::DeclareTransaction,
pub tx_hash: TransactionHash,
Expand Down Expand Up @@ -495,7 +495,7 @@ impl TransactionInfoCreator for InvokeTransaction {
}
}

#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct L1HandlerTransaction {
pub tx: starknet_api::transaction::L1HandlerTransaction,
pub tx_hash: TransactionHash,
Expand Down

0 comments on commit 66e7f0c

Please sign in to comment.