Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 7950

How to deserialize StakePool account data on a solana native program on chain?

$
0
0
 let stake = try_from_slice_unchecked::<StakePool>(&stake_pool.data.borrow())?;

i have tried try_from, try_from_slice,unchecheked and with schema as well, but I get this same error,

the trait bound `spl_stake_pool::state::StakePool: BorshDeserialize` is not satisfiedthe following other types implement trait `BorshDeserialize`:

Can anyone help me on this?


Viewing all articles
Browse latest Browse all 7950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>