Skip to content

Commit

Permalink
clean feature: system_transfer_zero_check (#34076)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored Nov 16, 2023
1 parent 0817cb0 commit f9fba7e
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 f9fba7e

Please sign in to comment.