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: remove program targeting #30

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Conversation

buffalojoec
Copy link
Owner

Problem

Now that we're stubbing the program account in the transaction context - like the validator runtime does - we can remove the concept of "target programs" in Mollusk.

Summary of Changes

Drop the program_id and program_account fields from the Mollusk struct. Also eliminate now irrelevant API methods.

Now, as long as a program has been added to the cache, Mollusk can be used to target it. Mollusk::new(program_id, program_name) will still create a new instance with the provided program cached.

@buffalojoec buffalojoec merged commit 2b973db into main Oct 18, 2024
4 checks passed
@buffalojoec buffalojoec deleted the remove-program-targeting branch October 18, 2024 06:44
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.

1 participant