From dc554608895439022f1f11809d2d7a5f76f9a13f Mon Sep 17 00:00:00 2001 From: Preston Evans Date: Thu, 27 Jun 2024 15:00:02 -0500 Subject: [PATCH] Remove spurious Hasher: BorshSerialize + BorshDeserialize bounds --- src/types/proof/definition.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {