Skip to main content
12 events
when toggle format what by license comment
Aug 29, 2022 at 15:01 comment added bubu59 alright, the problem is solved...
Aug 29, 2022 at 14:47 comment added bubu59 Apologies!! I created a new branch and did not updated the latest changes made !!! Here is the new link : [link] (github.com/0xSavant/MobiusProtocolPL/tree/restart)
Aug 28, 2022 at 13:07 comment added Ademola The code in the link is incomplete and vastly different from what's above. I'm voting to close this question because its lacks clarity and isn't specific. Raise a new question that properly specifies the parameters of your problem, or drop me a private message.
Aug 27, 2022 at 9:42 comment added bubu59 Is it alright if you could take a look at my repo to see what's missing ? It will be greatly appreciated as I have been stuck on this for a few weeks and I really do not know what's wrong. Here is the link to my repo --> link
Aug 27, 2022 at 9:39 comment added bubu59 After having added the seeds in, I went on to follow the example you gave above by providing the seeds in to to do the transfer of tokens from token_vault . However, in my test script, it still throws an error saying the signer is unknown
Aug 27, 2022 at 9:37 comment added bubu59 Would doing the above means that fundraiser_config is now the authority of the token_vault ?
Aug 27, 2022 at 9:29 comment added bubu59 oooh.. okok. So what I did was added in this piece of code in CreateCampaign struct #[account( init, seeds = [b"vault", fundraiser_config.key().as_ref()], bump, payer = fundraiser, token::mint = sol_mint, token::authority = token_vault )] pub token_vault: Box<Account<'info, TokenAccount>>,
Aug 26, 2022 at 20:12 history edited Ademola CC BY-SA 4.0
deleted 27 characters in body
Aug 26, 2022 at 19:44 history edited Ademola CC BY-SA 4.0
added 692 characters in body
Aug 26, 2022 at 19:39 comment added Ademola The authority in the accounts struct for the Transfer instruction has to be the authority of the from account(In this case token_vault). If it's a PDA then your signer argument should be gotten from whatever its seeds are.
Aug 26, 2022 at 14:12 comment added bubu59 Hey man, thanks for pointing that out! I have added in those 2 accounts but its throwing another error.. However, after thinking about it, since I'm setting vault_authority as pda over the token_vault, would it make more sense for the pda to sign this instruction instead? Given that I'm still getting the error message of unknown signer
Aug 26, 2022 at 10:49 history answered Ademola CC BY-SA 4.0