solana-program-library/account-compression/programs
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
..
account-compression fix ConcurrentMerkleTreeHeader (de)serialization (#3572) 2022-09-06 18:28:50 -05:00
wrapper AC: downgrade solana program version in wrapper to reduce dependency burden 2022-09-01 19:48:43 -04:00