File tree 1 file changed +1
-9
lines changed
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 24
24
std:: { collections:: HashSet , mem:: MaybeUninit } ,
25
25
} ;
26
26
27
- // TODO a nice change would be to pop an account off the queue and discard if
28
- // its a gettable sysvar ie, allow people to omit them from the accounts list
29
- // without breaking compat to be done after release, we keep the existing
30
- // interface for all instructions for compat with firedancer
31
-
32
- // TODO undecided if we do it in initial release or in a future release...
33
- // but we could use StakeError much more extensively and impl PrintProgramError
34
-
35
27
fn get_vote_state ( vote_account_info : & AccountInfo ) -> Result < Box < VoteState > , ProgramError > {
36
28
if * vote_account_info. owner != solana_vote_program:: id ( ) {
37
29
return Err ( ProgramError :: IncorrectProgramId ) ;
@@ -1224,7 +1216,7 @@ impl Processor {
1224
1216
. unwrap_or ( false ) ;
1225
1217
1226
1218
let instruction =
1227
- bincode:: deserialize ( data) . map_err ( |_| ProgramError :: InvalidAccountData ) ?;
1219
+ bincode:: deserialize ( data) . map_err ( |_| ProgramError :: InvalidInstructionData ) ?;
1228
1220
1229
1221
if epoch_rewards_active && !matches ! ( instruction, StakeInstruction :: GetMinimumDelegation ) {
1230
1222
return Err ( StakeError :: EpochRewardsActive . into ( ) ) ;
You can’t perform that action at this time.
0 commit comments