Skip to content

Commit

Permalink
check feature
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Oct 3, 2024
1 parent 5997ccb commit c55d2b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/verify_precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn verify_precompiles(message: &impl SVMMessage, feature_set: &FeatureSet) -
let precompiles = get_precompiles();
for (program_id, instruction) in message.program_instructions_iter() {
for precompile in precompiles {
if program_id == &precompile.program_id {
if precompile.check_id(program_id, |id| feature_set.is_active(id)) {
let all_instruction_data: &Vec<&[u8]> = all_instruction_data
.get_or_insert_with(|| message.instructions_iter().map(|ix| ix.data).collect());
precompile
Expand Down

0 comments on commit c55d2b4

Please sign in to comment.