Skip to content

Commit

Permalink
fix(cairo-serde): add missing derive for starknet types
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Aug 30, 2024
1 parent 299e7ca commit d374921
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/cairo-serde/src/types/starknet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{CairoSerde, Error, Result};
use starknet::core::types::Felt;

/// ContractAddress.
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, serde::Serialize, serde::Deserialize)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct ContractAddress(pub Felt);

impl From<Felt> for ContractAddress {
Expand Down Expand Up @@ -40,7 +40,7 @@ impl CairoSerde for ContractAddress {
}

/// ClassHash.
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, serde::Serialize, serde::Deserialize)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct ClassHash(pub Felt);

impl From<Felt> for ClassHash {
Expand Down Expand Up @@ -75,7 +75,7 @@ impl CairoSerde for ClassHash {
}

/// EthAddress.
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, serde::Serialize, serde::Deserialize)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, serde::Serialize, serde::Deserialize)]
pub struct EthAddress(pub Felt);

impl From<Felt> for EthAddress {
Expand Down

0 comments on commit d374921

Please sign in to comment.