Inverts disable_fees_sysvar
feature gating condition to match is_fee_sysvar_via_syscall_active
. (#21297)
This commit is contained in:
committed by
GitHub
parent
0661aa67ed
commit
db6d291127
@ -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)?;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user