I would like to deserialize VoteState account in Solana on-chain program. https://github.com/solana-labs/solana/blob/v1.17.10/sdk/program/src/vote/state/mod.rs#L285
From what I can see it's not possible to be done with VoteState::deserialize
as the deserialize is not implemented for sbf compilation (if I understand correctly).
https://github.com/solana-labs/solana/blob/v1.17.10/sdk/program/src/vote/state/mod.rs#L358
I found an issue related to that https://github.com/solana-labs/solana/pull/30515
While I do not understand if there is some simple way to get deserialized data or not and some manual deserialization is needed.
Would you somebody know?