Commit Graph

3 Commits

Author SHA1 Message Date
Alexandru Agache 668dcac11a
fix ConcurrentMerkleTreeHeader (de)serialization (#3572)
The `account_type` member of `ConcurrentMerkleTreeHeader` is currently
an `#[repr(u32)]` enum, but borsh only uses one byte to serialize or
deserialize an enum tag, which leads to issues with `try_from_slice`
calls that get passed slices computed based on applying `size_of` to
`ConcurrentMerkleTreeHeader`. This commit replaces the underlying
type of `account_type` with an integer type.

Signed-off-by: Alexandru Agache <alexandruag@gmail.com>

Signed-off-by: Alexandru Agache <alexandruag@gmail.com>
2022-09-06 18:28:50 -05:00
ngundotra 7c7507f4ec AC: downgrade solana program version in wrapper to reduce dependency burden 2022-09-01 19:48:43 -04:00
Noah Gundotra 3fe92ea05f
Add on-chain compression program that uses CMT (#3489) 2022-08-25 08:51:35 -10:00