Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Authority for Vault Account #14

Closed
brendan-mccaffrey opened this issue Dec 14, 2022 · 1 comment
Closed

Set Authority for Vault Account #14

brendan-mccaffrey opened this issue Dec 14, 2022 · 1 comment

Comments

@brendan-mccaffrey
Copy link

Hello, I'm working on a separate (non-escrow) project, and been using this as a reference.

I am facing an issue when trying to transfer the Token Account authority. In this codebase, this is relevant to the authority transfer of vault_account on Line 45 of lib.rs.

Note: I am using different versions of anchor-spl, version 0.25.0, however I haven't found reason to believe this is the source of the issue.

In my example, the equivalent to Line 156 of test.ts fails as the _vault.owner address is the Token Program, not the program PDA.

Any help is appreciated, thanks.

@ironaddicteddog
Copy link
Owner

Would it be possible that the authority is not set correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants