diff --git a/src/types/proof/definition.rs b/src/types/proof/definition.rs index 79bf519..c29d2b1 100644 --- a/src/types/proof/definition.rs +++ b/src/types/proof/definition.rs @@ -37,6 +37,7 @@ pub struct SparseMerkleProof { siblings: Vec, /// A marker type showing which hash function is used in this proof. + #[borsh(bound(serialize = "", deserialize = ""))] phantom_hasher: PhantomData, } @@ -511,7 +512,9 @@ impl SparseMerkleProof { } #[derive(Debug, Serialize, Deserialize, borsh::BorshSerialize, borsh::BorshDeserialize)] -pub struct UpdateMerkleProof(Vec>); +pub struct UpdateMerkleProof( + #[borsh(bound(serialize = "", deserialize = ""))] Vec>, +); impl UpdateMerkleProof { pub fn new(merkle_proofs: Vec>) -> Self {