Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(transaction): add clone to declare tx #129

Merged
merged 1 commit into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading