Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

system-program: Remove zero lamport check on transfers #17726

Merged
merged 9 commits into from
Jun 5, 2021
Prev Previous commit
Next Next commit
Update stake tests referring to split instruction
  • Loading branch information
joncinque committed Jun 4, 2021
commit b35c3176e68266eb6aa23480feada6d54aee3f45
10 changes: 5 additions & 5 deletions programs/stake/src/stake_instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ mod tests {
&Pubkey::default(),
100,
&invalid_stake_state_pubkey(),
)[1]
)[2]
),
Err(InstructionError::InvalidAccountData),
);
Expand All @@ -783,7 +783,7 @@ mod tests {
&invalid_stake_state_pubkey(),
&Pubkey::default(),
"seed"
)[1]
)[2]
),
Err(InstructionError::InvalidAccountData),
);
Expand Down Expand Up @@ -846,7 +846,7 @@ mod tests {
&Pubkey::default(),
100,
&Pubkey::default(),
)[1]
)[2]
),
Err(InstructionError::InvalidAccountOwner),
);
Expand All @@ -857,7 +857,7 @@ mod tests {
&Pubkey::default(),
100,
&spoofed_stake_state_pubkey(),
)[1]
)[2]
),
Err(InstructionError::IncorrectProgramId),
);
Expand Down Expand Up @@ -890,7 +890,7 @@ mod tests {
&Pubkey::default(),
&Pubkey::default(),
"seed"
)[1]
)[2]
),
Err(InstructionError::InvalidAccountOwner),
);
Expand Down