Skip to content

Commit

Permalink
RuntimeTransaction: Clone
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Sep 30, 2024
1 parent 489f483 commit 7008c87
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use {
};

#[cfg_attr(test, derive(Eq, PartialEq))]
#[derive(Default, Debug)]
#[derive(Clone, Default, Debug)]
pub(crate) struct ComputeBudgetInstructionDetails {
// compute-budget instruction details:
// the first field in tuple is instruction index, second field is the unsanitized value set by user
Expand Down
2 changes: 1 addition & 1 deletion runtime-transaction/src/runtime_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use {
std::collections::HashSet,
};

#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct RuntimeTransaction<T> {
transaction: T,
// transaction meta is a collection of fields, it is updated
Expand Down
2 changes: 1 addition & 1 deletion runtime-transaction/src/transaction_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub trait StaticMeta {
/// on-chain ALT, examples are: transaction usage costs, nonce account.
pub trait DynamicMeta: StaticMeta {}

#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct TransactionMeta {
pub(crate) message_hash: Hash,
pub(crate) is_simple_vote_tx: bool,
Expand Down
2 changes: 1 addition & 1 deletion sdk/program/src/message/sanitized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ impl SanitizedMessage {

/// Transaction signature details including the number of transaction signatures
/// and precompile signatures.
#[derive(Debug, Default)]
#[derive(Clone, Debug, Default)]
pub struct TransactionSignatureDetails {
num_transaction_signatures: u64,
num_secp256k1_instruction_signatures: u64,
Expand Down

0 comments on commit 7008c87

Please sign in to comment.