examples: Fix token init (#610)

This commit is contained in:
Armani Ferrante 2021-08-15 00:20:00 -07:00 committed by GitHub
parent fef207dc83
commit 941e439429
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -293,6 +293,7 @@ pub struct CreateOfficer<'info> {
#[account(
init,
token::mint = mint,
token::authority = officer,
associated = officer, with = b"vault",
payer = authority,
)]
@ -300,6 +301,7 @@ pub struct CreateOfficer<'info> {
#[account(
init,
token::mint = mint,
token::authority = officer,
associated = officer, with = b"stake",
space = TokenAccount::LEN,
payer = authority,
@ -308,6 +310,7 @@ pub struct CreateOfficer<'info> {
#[account(
init,
token::mint = mint,
token::authority = officer,
associated = officer, with = b"treasury",
payer = authority,
)]
@ -336,6 +339,7 @@ pub struct CreateOfficerToken<'info> {
#[account(
init,
token::mint = mint,
token::authority = officer,
associated = officer, with = mint,
space = TokenAccount::LEN,
payer = payer,