Repository navigation
deps: Bump mollusk-svm to 0.17 - #134
Merged
Merged
Conversation
Mollusk 0.17 uses solana-account 5 and solana-rent 4, and depends on agave 4.4, which requires rustc 1.98.1. Bump the matching test dependencies and toolchains. `solana_account::create_account_for_test` is gone, so build the rent sysvar account with Mollusk's `keyed_account_for_rent_sysvar`. Mollusk now checks rent-state transitions by default. The trim tests sent excess lamports to an empty, unfunded destination, leaving it below the rent-exempt minimum, which the runtime rejects. Fund those destinations with the empty-account minimum instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joncinque
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
mollusk-svmis on 0.13, and the latest release is 0.17.1.Summary of changes
mollusk-svmfrom 0.13 to 0.17.1, and updateCargo.lockwithcargo update -p mollusk-svm.solana-account3.4 → 5.0 andsolana-rent3.1 → 4.4.rust-toolchain.tomlgoes from 1.89.0 to 1.98.1. The pinned nightly inCargo.tomlgoes fromnightly-2026-01-22tonightly-2026-07-16.tests/setup/mod.rs:solana_account::create_account_for_testno longer exists.rent_sysvar()now builds the account with Mollusk'sSysvars::keyed_account_for_rent_sysvar(), keeping the sameRent::with_lamports_per_byte(DEFAULT_LAMPORTS_PER_BYTE)value.tests/trim.rs: Mollusk now checks rent-state transitions by default (anza-xyz/mollusk#317).test_trim_canonical,test_trim_non_canonicalandtest_trim_buffersent the trimmed excess lamports to an emptyAccount::default()destination. That left the destination below the rent-exempt minimum (626,400 lamports with no data), which the runtime rejects. The tests now fund the destination withminimum_balance_for(0)and expect that amount plus the trimmed excess. What the tests check about the program is unchanged.Testing
Locally:
make build-sbf-programwith the pinned Solana CLI 3.1.14make test-{clients-rust,program}(76 tests)make clippy-*with the new nightlycargo fmt --checkandmake audit🤖 Generated with Claude Code