Skip to content

Mark the program account as writable in the Close instruction - #30

Merged
joncinque merged 2 commits into
solana-program:mainfrom
Iamsohungrynow:fix/close-program-writable
Dec 1, 2026
Merged

joncinque merged 2 commits into
solana-program:mainfrom
Iamsohungrynow:fix/close-program-writable

Conversation

@Iamsohungrynow

Copy link
Copy Markdown
Contributor

closing a program with close always failed with Program account is not writable, since the idl had the program account as read-only. made it writable, regenerated the clients and added a litesvm test that deploys and closes a small program

@joncinque joncinque left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the contribution.

However, we can't just commit a binary from an external contributor to the repo. We'll push to your branch with a no-op program from our side.

The rest looks correct to me

Comment thread idl.json
{
"name": "programAccount",
"isMut": false,
"isMut": true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Confirming this is correct

@joncinque
joncinque force-pushed the fix/close-program-writable branch from 3b92adb to 1e12f62 Compare December 1, 2026 10:58
@joncinque
joncinque force-pushed the fix/close-program-writable branch from 1e12f62 to 38245dc Compare December 1, 2026 11:02
@joncinque
joncinque merged commit c5c210f into solana-program:main Dec 1, 2026
20 checks passed
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