Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions program/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,10 +784,6 @@ impl Processor {
return Err(StakePoolError::WrongMintingAuthority.into());
}

if pool_mint.base.freeze_authority.is_some() {
return Err(StakePoolError::InvalidMintFreezeAuthority.into());
}

let extensions = pool_mint.get_extension_types()?;
if extensions
.iter()
Expand Down
14 changes: 2 additions & 12 deletions program/tests/initialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ async fn fail_with_wrong_mint_authority() {
}

#[tokio::test]
async fn fail_with_freeze_authority() {
async fn succeed_with_freeze_authority() {
let (mut banks_client, payer, recent_blockhash) = program_test().start().await;
let stake_pool_accounts = StakePoolAccounts::default();

Expand Down Expand Up @@ -474,7 +474,7 @@ async fn fail_with_freeze_authority() {
.await
.unwrap();

let error = create_stake_pool(
create_stake_pool(
&mut banks_client,
&payer,
&recent_blockhash,
Expand All @@ -497,17 +497,7 @@ async fn fail_with_freeze_authority() {
stake_pool_accounts.max_validators,
)
.await
.err()
.unwrap()
.unwrap();

assert_eq!(
error,
TransactionError::InstructionError(
2,
InstructionError::Custom(error::StakePoolError::InvalidMintFreezeAuthority as u32),
)
);
}

#[tokio::test]
Expand Down
Loading