Skip to content

Commit

Permalink
Idempotent typo (#2406)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristyn authored Feb 27, 2023
1 parent 777f2ea commit e1fd686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spl/src/associated_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn create<'info>(ctx: CpiContext<'_, '_, '_, 'info, Create<'info>>) -> Resul
}

pub fn create_idempotent<'info>(
ctx: CpiContext<'_, '_, '_, 'info, CreateIdemptotent<'info>>,
ctx: CpiContext<'_, '_, '_, 'info, CreateIdempotent<'info>>,
) -> Result<()> {
let ix = spl_associated_token_account::instruction::create_associated_token_account_idempotent(
ctx.accounts.payer.key,
Expand Down Expand Up @@ -63,7 +63,7 @@ pub struct Create<'info> {
pub token_program: AccountInfo<'info>,
}

type CreateIdemptotent<'info> = Create<'info>;
type CreateIdempotent<'info> = Create<'info>;

#[derive(Clone)]
pub struct AssociatedToken;
Expand Down

1 comment on commit e1fd686

@vercel
Copy link

@vercel vercel bot commented on e1fd686 Feb 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

anchor-docs – ./

anchor-docs-git-master-200ms.vercel.app
anchor-docs-200ms.vercel.app
anchor-lang.com
www.anchor-lang.com

Please sign in to comment.