Skip to content

Commit

Permalink
fix(katana-rpc-types): proofs types serde (#2872)
Browse files Browse the repository at this point in the history
fix: transparent serde
  • Loading branch information
kariy authored Jan 6, 2025
1 parent e6d82d9 commit 23614ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/katana/rpc/rpc-types/src/trie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ pub struct GetStorageProofResponse {
}

#[derive(Debug, Default, Serialize, Deserialize)]
#[serde(transparent)]
pub struct ClassesProof {
pub nodes: Nodes,
}
Expand All @@ -101,9 +102,11 @@ pub struct ContractLeafData {
}

#[derive(Debug, Default, Serialize, Deserialize)]
#[serde(transparent)]
pub struct ContractStorageProofs {
pub nodes: Vec<Nodes>,
}

#[derive(Debug, Serialize, Deserialize)]
pub struct NodeWithHash {
pub node_hash: Felt,
Expand Down

0 comments on commit 23614ea

Please sign in to comment.