From 51b2bcce15da67e8d9094a8df3e6e105f6e3d30b Mon Sep 17 00:00:00 2001 From: feltroidprime Date: Tue, 16 Apr 2024 12:59:02 -0300 Subject: [PATCH] derive Serde trait to storage proof structs --- src/merkle_tree/src/storage_proof.cairo | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/merkle_tree/src/storage_proof.cairo b/src/merkle_tree/src/storage_proof.cairo index 813cb325..8ddedff3 100644 --- a/src/merkle_tree/src/storage_proof.cairo +++ b/src/merkle_tree/src/storage_proof.cairo @@ -2,7 +2,7 @@ use core::hash::HashStateTrait; use core::pedersen::PedersenTrait; use core::poseidon::PoseidonTrait; -#[derive(Drop)] +#[derive(Drop, Serde)] pub struct BinaryNode { left: felt252, right: felt252, @@ -15,7 +15,7 @@ pub impl BinaryNodeImpl of BinaryNodeTrait { } } -#[derive(Drop, Copy)] +#[derive(Drop, Copy, Serde)] pub struct EdgeNode { path: felt252, child: felt252, @@ -29,13 +29,13 @@ pub impl EdgeNodeImpl of EdgeNodeTrait { } } -#[derive(Drop)] +#[derive(Drop, Serde)] pub enum TrieNode { Binary: BinaryNode, Edge: EdgeNode, } -#[derive(Destruct)] +#[derive(Destruct, Serde)] pub struct ContractData { class_hash: felt252, nonce: felt252, @@ -55,7 +55,7 @@ pub impl ContractDataImpl of ContractDataTrait { } } -#[derive(Destruct)] +#[derive(Destruct, Serde)] pub struct ContractStateProof { class_commitment: felt252, contract_proof: Array,