Skip to content

Commit

Permalink
clean feature: system_transfer_zero_check
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Nov 15, 2023
1 parent ae30572 commit 2a83b0c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions programs/system/src/system_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use {
sysvar_cache::get_sysvar_with_account_check,
},
solana_sdk::{
feature_set,
instruction::InstructionError,
nonce,
program_utils::limited_deserialize,
Expand Down Expand Up @@ -220,14 +219,6 @@ fn transfer(
transaction_context: &TransactionContext,
instruction_context: &InstructionContext,
) -> Result<(), InstructionError> {
if !invoke_context
.feature_set
.is_active(&feature_set::system_transfer_zero_check::id())
&& lamports == 0
{
return Ok(());
}

if !instruction_context.is_instruction_account_signer(from_account_index)? {
ic_msg!(
invoke_context,
Expand Down Expand Up @@ -261,14 +252,6 @@ fn transfer_with_seed(
transaction_context: &TransactionContext,
instruction_context: &InstructionContext,
) -> Result<(), InstructionError> {
if !invoke_context
.feature_set
.is_active(&feature_set::system_transfer_zero_check::id())
&& lamports == 0
{
return Ok(());
}

if !instruction_context.is_instruction_account_signer(from_base_account_index)? {
ic_msg!(
invoke_context,
Expand Down

0 comments on commit 2a83b0c

Please sign in to comment.