Skip to content

Commit

Permalink
derive PartialEq for some types (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey authored Jan 23, 2025
1 parent 6f2f065 commit 26e57fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/litesvm/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use solana_sdk::{
transaction_context::TransactionReturnData,
};

#[derive(Debug, Default, Clone)]
#[derive(Debug, Default, Clone, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct TransactionMetadata {
#[cfg_attr(feature = "serde", serde(with = "crate::utils::serde_with_str"))]
Expand All @@ -20,14 +20,14 @@ pub struct TransactionMetadata {
pub return_data: TransactionReturnData,
}

#[derive(Debug, Default, Clone)]
#[derive(Debug, Default, Clone, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct SimulatedTransactionInfo {
pub meta: TransactionMetadata,
pub post_accounts: Vec<(Pubkey, AccountSharedData)>,
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct FailedTransactionMetadata {
pub err: TransactionError,
Expand Down

0 comments on commit 26e57fc

Please sign in to comment.