File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 8
8
solana_compute_budget:: compute_budget:: MAX_INSTRUCTION_STACK_DEPTH ,
9
9
solana_feature_set:: {
10
10
bpf_account_data_direct_mapping, enable_bpf_loader_set_authority_checked_ix,
11
- remove_accounts_executable_flag_checks,
11
+ enable_loader_v4 , remove_accounts_executable_flag_checks,
12
12
} ,
13
13
solana_log_collector:: { ic_logger_msg, ic_msg, LogCollector } ,
14
14
solana_measure:: measure:: Measure ,
@@ -567,6 +567,14 @@ fn process_loader_upgradeable_instruction(
567
567
) ?;
568
568
}
569
569
UpgradeableLoaderInstruction :: DeployWithMaxDataLen { max_data_len } => {
570
+ if invoke_context
571
+ . get_feature_set ( )
572
+ . is_active ( & enable_loader_v4:: id ( ) )
573
+ {
574
+ ic_logger_msg ! ( log_collector, "Unsupported instruction" ) ;
575
+ return Err ( InstructionError :: InvalidInstructionData ) ;
576
+ }
577
+
570
578
instruction_context. check_number_of_instruction_accounts ( 4 ) ?;
571
579
let payer_key = * transaction_context. get_key_of_account_at_index (
572
580
instruction_context. get_index_of_instruction_account_in_transaction ( 0 ) ?,
You can’t perform that action at this time.
0 commit comments