Skip to content

Commit

Permalink
add feature check for core_bpf_migration_feature() and position()
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 committed Jan 15, 2025
1 parent 2bb3791 commit c11f31f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtins-default-costs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ impl BuiltinCost {
}
}

#[cfg(feature = "svm-internal")]
fn core_bpf_migration_feature(&self) -> Option<&Pubkey> {
match self {
BuiltinCost::Migrating(MigratingBuiltinCost {
Expand All @@ -63,6 +64,7 @@ impl BuiltinCost {
}
}

#[cfg(feature = "svm-internal")]
fn position(&self) -> Option<usize> {
match self {
BuiltinCost::Migrating(MigratingBuiltinCost { position, .. }) => Some(*position),
Expand Down

0 comments on commit c11f31f

Please sign in to comment.