瀏覽代碼

spl: Fix rent required on InitializeAccount (#430)

Dana Hanna 4 年之前
父節點
當前提交
96c898ddb4
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      spl/src/token.rs

+ 2 - 0
spl/src/token.rs

@@ -120,6 +120,7 @@ pub fn initialize_account<'a, 'b, 'c, 'info>(
             ctx.accounts.account.clone(),
             ctx.accounts.mint.clone(),
             ctx.accounts.authority.clone(),
+            ctx.accounts.rent.clone(),
             ctx.program.clone(),
         ],
         ctx.signer_seeds,
@@ -188,6 +189,7 @@ pub struct InitializeAccount<'info> {
     pub account: AccountInfo<'info>,
     pub mint: AccountInfo<'info>,
     pub authority: AccountInfo<'info>,
+    pub rent: AccountInfo<'info>,
 }
 
 #[derive(Accounts)]