Skip to content

Commit

Permalink
feat(katana-rpc-types): untagged enum (#2820)
Browse files Browse the repository at this point in the history
make merkle node untagged
  • Loading branch information
kariy authored Dec 18, 2024
1 parent 8deb4b6 commit d4cf02a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/katana/rpc/rpc-types/src/trie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub struct GlobalRoots {

/// Node in the Merkle-Patricia trie.
#[derive(Debug, Serialize, Deserialize)]
#[serde(untagged)]
pub enum MerkleNode {
/// Represents a path to the highest non-zero descendant node.
Edge {
Expand Down

0 comments on commit d4cf02a

Please sign in to comment.