diff --git a/runtime-transaction/src/compute_budget_instruction_details.rs b/runtime-transaction/src/compute_budget_instruction_details.rs index ab148ef14ae152..7fe6116c426c8b 100644 --- a/runtime-transaction/src/compute_budget_instruction_details.rs +++ b/runtime-transaction/src/compute_budget_instruction_details.rs @@ -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 diff --git a/runtime-transaction/src/runtime_transaction.rs b/runtime-transaction/src/runtime_transaction.rs index 14c13138025b31..850c41c79a80a3 100644 --- a/runtime-transaction/src/runtime_transaction.rs +++ b/runtime-transaction/src/runtime_transaction.rs @@ -33,7 +33,7 @@ use { std::collections::HashSet, }; -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct RuntimeTransaction { transaction: T, // transaction meta is a collection of fields, it is updated diff --git a/runtime-transaction/src/transaction_meta.rs b/runtime-transaction/src/transaction_meta.rs index 6ddce57e11dc5b..9b444e2b8669c8 100644 --- a/runtime-transaction/src/transaction_meta.rs +++ b/runtime-transaction/src/transaction_meta.rs @@ -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, diff --git a/sdk/program/src/message/sanitized.rs b/sdk/program/src/message/sanitized.rs index 3767ffef5bb51f..c5eaa3d469e2ad 100644 --- a/sdk/program/src/message/sanitized.rs +++ b/sdk/program/src/message/sanitized.rs @@ -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,