Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(auction-house): typo fix #1165

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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: 2 additions & 2 deletions auction-house/program/src/cancel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub struct CancelRemainingAccounts<'info> {
pub auth_rules: UncheckedAccount<'info>,
///CHECK: checked in cpi
pub sysvar_instructions: UncheckedAccount<'info>,
///CHECK: chekced in cpi
///CHECK: checked in cpi
pub system_program: UncheckedAccount<'info>,
}

Expand Down Expand Up @@ -124,7 +124,7 @@ pub struct AuctioneerCancel<'info> {
/// Auction House instance authority account.
pub authority: UncheckedAccount<'info>,

/// CHECK: Validated in ah_auctioneer_pda seeds anbd as a signer in cancel_logic.
/// CHECK: Validated in ah_auctioneer_pda seeds and as a signer in cancel_logic.
/// The auctioneer authority - typically a PDA of the Auctioneer program running this action.
pub auctioneer_authority: Signer<'info>,

Expand Down
8 changes: 4 additions & 4 deletions auction-house/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,21 +682,21 @@ pub struct CreateAuctionHouse<'info> {
#[account(mut)]
pub payer: Signer<'info>,

/// CHECK: User can use whatever they want for intialization.
/// CHECK: User can use whatever they want for initialization.
// Authority key for the Auction House.
pub authority: UncheckedAccount<'info>,

/// CHECK: User can use whatever they want for intialization.
/// CHECK: User can use whatever they want for initialization.
/// Account that pays for fees if the marketplace executes sales.
#[account(mut)]
pub fee_withdrawal_destination: UncheckedAccount<'info>,

/// CHECK: User can use whatever they want for intialization.
/// CHECK: User can use whatever they want for initialization.
/// SOL or SPL token account to receive Auction House fees. If treasury mint is native this will be the same as the `treasury_withdrawl_destination_owner`.
#[account(mut)]
pub treasury_withdrawal_destination: UncheckedAccount<'info>,

/// CHECK: User can use whatever they want for intialization.
/// CHECK: User can use whatever they want for initialization.
/// Owner of the `treasury_withdrawal_destination` account or the same address if the `treasury_mint` is native.
pub treasury_withdrawal_destination_owner: UncheckedAccount<'info>,

Expand Down
4 changes: 2 additions & 2 deletions auction-house/program/src/receipt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub struct PurchaseReceipt {
pub created_at: i64,
}

/// Accounts for the [`print_listing_receipt` hanlder](fn.print_listing_receipt.html).
/// Accounts for the [`print_listing_receipt` handler](fn.print_listing_receipt.html).
#[derive(Accounts)]
#[instruction(receipt_bump: u8)]
pub struct PrintListingReceipt<'info> {
Expand Down Expand Up @@ -214,7 +214,7 @@ pub struct CancelListingReceipt<'info> {
pub instruction: UncheckedAccount<'info>,
}

/// Add a cancelation time to a listing receipt.
/// Add a cancellation time to a listing receipt.
pub fn cancel_listing_receipt<'info>(
ctx: Context<'_, '_, '_, 'info, CancelListingReceipt<'info>>,
) -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion auction-house/program/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ pub fn assert_valid_trade_state(
}

// This function verifies that there are enough funds in `account` such that `amount` can be
// withdrawn. If there are not sufficent funds it returns an error. If there are sufficient
// withdrawn. If there are not sufficient funds it returns an error. If there are sufficient
// funds, it returns any additional amount needed to keep the account above the rent exempt
// threshold.
pub fn verify_withdrawal(account: AccountInfo, amount: u64) -> Result<u64> {
Expand Down