Skip to content

Commit

Permalink
add Eq, PartialEq
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejka committed Jun 18, 2024
1 parent 32300a2 commit bedf462
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 101 deletions.
6 changes: 3 additions & 3 deletions crates/starknet-types-rpc/src/custom/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
BroadcastedDeclareTxnV1, BroadcastedDeclareTxnV2, DeployAccountTxnV1, InvokeTxnV0, InvokeTxnV1,
};

#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
#[serde(tag = "version")]
pub enum BroadcastedDeclareTxn<F: Default> {
#[serde(rename = "0x1")]
Expand All @@ -22,7 +22,7 @@ pub enum BroadcastedDeclareTxn<F: Default> {
QueryV2(BroadcastedDeclareTxnV2<F>),
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
#[serde(tag = "version")]
pub enum BroadcastedDeployAccountTxn<F> {
#[serde(rename = "0x1")]
Expand All @@ -32,7 +32,7 @@ pub enum BroadcastedDeployAccountTxn<F> {
QueryV1(DeployAccountTxnV1<F>),
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
#[serde(tag = "version")]
pub enum BroadcastedInvokeTxn<F> {
#[serde(rename = "0x0")]
Expand Down
Loading

0 comments on commit bedf462

Please sign in to comment.