feat(rust): add marshalling for Hhex

This commit is contained in:
Rene Vergara 2024-11-04 15:41:27 -06:00
parent b748cba310
commit 1ec6d2df5b
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -272,6 +272,12 @@ impl<RW> ToHaskell<RW> for Hhex {
}
}
impl<RW> FromHaskell<RW> for Hhex {
fn from_haskell(buf: &mut &[u8], _tag: PhantomData<RW>) -> Result<Self> {
let x = Hhex::deserialize(buf)?;
Ok(x)
}
}
#[derive(Debug, BorshSerialize, BorshDeserialize)]
pub struct Haction {