Skip to content

Commit

Permalink
Style: fix for typos
Browse files Browse the repository at this point in the history
  • Loading branch information
RainRaydium committed May 13, 2024
1 parent 0ae0b08 commit ae039d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions program/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -901,9 +901,9 @@ impl Processor {
"sys_program",
AmmError::InvalidSysProgramAddress
);
let (expect_amm_authority, expect_none) =
let (expect_amm_authority, expect_nonce) =
Pubkey::find_program_address(&[&AUTHORITY_AMM], program_id);
if *amm_authority_info.key != expect_amm_authority || init.nonce != expect_none {
if *amm_authority_info.key != expect_amm_authority || init.nonce != expect_nonce {
return Err(AmmError::InvalidProgramAddress.into());
}
if *create_fee_destination_info.key != config_feature::create_pool_fee_address::id() {
Expand Down Expand Up @@ -2308,7 +2308,7 @@ impl Processor {
AmmError::InvalidOpenOrders
);
check_assert_eq!(
*market_porgram_info.key,
*market_program_info.key,
amm.market_program,
"market_program",
AmmError::InvalidMarketProgram
Expand Down

0 comments on commit ae039d2

Please sign in to comment.