Inverts disable_fees_sysvar feature gating condition to match is_fee_sysvar_via_syscall_active. (#21297)

This commit is contained in:
Alexander Meißner
2021-11-16 18:41:33 +01:00
committed by GitHub
parent 0661aa67ed
commit db6d291127

View File

@ -154,7 +154,7 @@ pub fn register_syscalls(
b"sol_get_epoch_schedule_sysvar", b"sol_get_epoch_schedule_sysvar",
SyscallGetEpochScheduleSysvar::call, SyscallGetEpochScheduleSysvar::call,
)?; )?;
if invoke_context.is_feature_active(&disable_fees_sysvar::id()) { if !invoke_context.is_feature_active(&disable_fees_sysvar::id()) {
syscall_registry syscall_registry
.register_syscall_by_name(b"sol_get_fees_sysvar", SyscallGetFeesSysvar::call)?; .register_syscall_by_name(b"sol_get_fees_sysvar", SyscallGetFeesSysvar::call)?;
} }