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

feat: close publisher caps #535

Merged
merged 2 commits into from
Sep 13, 2024
Merged

feat: close publisher caps #535

merged 2 commits into from
Sep 13, 2024

Conversation

guibescos
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Sep 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 5:07pm
staking-devnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 5:07pm

#[derive(Accounts)]
pub struct ClosePublisherCaps<'info> {
pub write_authority: Signer<'info>,
#[account(mut, close = write_authority, has_one = write_authority @ PublisherCapsError::WrongWriteAuthority)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does close = write_authority mean that it will give the lamports to write_authority?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added test

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

Successfully merging this pull request may close these issues.

2 participants