Skip to main content
2 votes
Accepted

Referencing an account from another within #[derive(Accounts)]

This is a known breaking change from Anchor 0.30.0. This means you have 3 options: Use Anchor 0.29.0 Use one of the two workarounds I suggested here where I answered someone who had a similar issue ...
Ahri's user avatar
  • 4,717
2 votes

Unable to deploy a Hello World contract

You'll probably need to upgrade to the latest solana CLI version solana-install update I would also suggest using wsl As to why the rust cargo tools aren't working: when you compile using the rust ...
Jimii's user avatar
  • 3,770
2 votes

Why does has_one does not work?

You need to name the struct fields the same way as you did for instruction fields. Rename first or the other, e.g., // all named as `client` #[derive(Accounts)] pub struct AcceptJob<'info> { ...
chalda's user avatar
  • 1,392
1 vote

Suddenly getting error message: Safety checks failed: Failed to get program path

If you get this error after running anchor build, you can fix it by upgrading your anchor-cli to v0.30.1: avm install 0.30.1 On the other hand, if you get this error from Rust Analyzer, it means you ...
acheron's user avatar
  • 2,699
1 vote
Accepted

Solana call mint token from pda program: Cross-program invocation with unauthorized

The reason why CreateToken is probably because you are using different seeds. The mint seeds will be your program ID + your mint seeds const [mintAccount, mintAccountBum] = anchor....
Jimii's user avatar
  • 3,770

Only top scored, non community-wiki answers of a minimum length are eligible