From c11f31f50360d62e99a21c753c6251c324c806eb Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Wed, 15 Jan 2025 13:32:33 -0800 Subject: [PATCH] add feature check for core_bpf_migration_feature() and position() --- builtins-default-costs/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtins-default-costs/src/lib.rs b/builtins-default-costs/src/lib.rs index 67ccbc254cd7af..2653deb7a9cc72 100644 --- a/builtins-default-costs/src/lib.rs +++ b/builtins-default-costs/src/lib.rs @@ -53,6 +53,7 @@ impl BuiltinCost { } } + #[cfg(feature = "svm-internal")] fn core_bpf_migration_feature(&self) -> Option<&Pubkey> { match self { BuiltinCost::Migrating(MigratingBuiltinCost { @@ -63,6 +64,7 @@ impl BuiltinCost { } } + #[cfg(feature = "svm-internal")] fn position(&self) -> Option { match self { BuiltinCost::Migrating(MigratingBuiltinCost { position, .. }) => Some(*position),