Skip to content

program: Use CreateAccountAllowPrefund#84

Merged
febo merged 3 commits into
mainfrom
febo/use-allow-prefund
Jun 23, 2026
Merged

program: Use CreateAccountAllowPrefund#84
febo merged 3 commits into
mainfrom
febo/use-allow-prefund

Conversation

@febo

@febo febo commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Program

Currently the program is using a combination of Allocate and Assign when initializing a pre-funded account, but could use the new CreateAccountAllowPrefund instruction.

Solution

Use CreateAccountAllowPrefund instead.

Note: This PR is blocked on #83 and litesvm update.

@febo febo marked this pull request as draft June 6, 2026 15:14
@Vis-Revek

This comment was marked as spam.

@lorisleiva lorisleiva force-pushed the febo/use-allow-prefund branch from c62b40a to eb9cc3f Compare June 22, 2026 14:56
@febo febo force-pushed the febo/use-allow-prefund branch from eb9cc3f to f7a849c Compare June 23, 2026 11:18
@febo febo marked this pull request as ready for review June 23, 2026 11:23
@febo febo requested review from joncinque and lorisleiva June 23, 2026 11:23
Comment thread clients/js/package.json
"@solana/kit-plugin-litesvm": "^0.10.0",
"@solana/kit-plugin-rpc": "^0.11.1",
"@solana/kit-plugin-signer": "^0.10.0",
"@solana/kit-plugin-litesvm": "^0.12.1",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was needed so litesvm includes the System program with CreateAccountAllowPrefund instruction.

@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.

Looks good to me!

@febo febo merged commit f5e2c85 into main Jun 23, 2026
21 checks passed
@febo febo deleted the febo/use-allow-prefund branch June 23, 2026 12:34
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.

5 participants