Browse Source

Idempotent typo (#2406)

Tristyn Stimpson 2 years ago
parent
commit
e1fd686ef2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      spl/src/associated_token.rs

+ 2 - 2
spl/src/associated_token.rs

@@ -30,7 +30,7 @@ pub fn create<'info>(ctx: CpiContext<'_, '_, '_, 'info, Create<'info>>) -> Resul
 }
 }
 
 
 pub fn create_idempotent<'info>(
 pub fn create_idempotent<'info>(
-    ctx: CpiContext<'_, '_, '_, 'info, CreateIdemptotent<'info>>,
+    ctx: CpiContext<'_, '_, '_, 'info, CreateIdempotent<'info>>,
 ) -> Result<()> {
 ) -> Result<()> {
     let ix = spl_associated_token_account::instruction::create_associated_token_account_idempotent(
     let ix = spl_associated_token_account::instruction::create_associated_token_account_idempotent(
         ctx.accounts.payer.key,
         ctx.accounts.payer.key,
@@ -63,7 +63,7 @@ pub struct Create<'info> {
     pub token_program: AccountInfo<'info>,
     pub token_program: AccountInfo<'info>,
 }
 }
 
 
-type CreateIdemptotent<'info> = Create<'info>;
+type CreateIdempotent<'info> = Create<'info>;
 
 
 #[derive(Clone)]
 #[derive(Clone)]
 pub struct AssociatedToken;
 pub struct AssociatedToken;