trident icon indicating copy to clipboard operation
trident copied to clipboard

💡 [REQUEST] - Support Anchor v0.31 and Solana v2.1

Open PaulRBerg opened this issue 6 months ago • 5 comments

Summary

I am unable to run Trident in a project that uses Anchor v0.31

Basic Example

anchor build

Error

Getting this error when running trident fuzz run-hfuzz fuzz_0:

trident fuzz run-hfuzz fuzz_0
    Updating crates.io index
error: failed to select a version for `solana-program`.
    ... required by package `solana-sdk v2.0.0`
    ... which satisfies dependency `solana-sdk = "~2.0"` of package `trident-fuzz v0.10.0`
    ... which satisfies dependency `trident-fuzz = "^0.10.0"` of package `fuzz_tests v0.1.0 (/Users/prb/Sablier/solana/solsab/trident-tests)`
versions that meet the requirements `=2.0.0` are: 2.0.0

all possible versions conflict with previously selected packages.

  previously selected package `solana-program v2.1.17`
    ... which satisfies dependency `solana-program = "^2.1.0"` of package `spl-associated-token-account v6.0.0`
    ... which satisfies dependency `spl-associated-token-account = "^6"` of package `anchor-spl v0.31.1`
    ... which satisfies dependency `anchor-spl = "^0.31.1"` of package `sablier_lockup v0.1.0 (/Users/prb/Sablier/solana/solsab/programs/lockup)`
    ... which satisfies path dependency `sablier_lockup` (locked to 0.1.0) of package `fuzz_tests v0.1.0 (/Users/prb/Sablier/solana/solsab/trident-tests)`

failed to select a version for `solana-program` which could resolve this conflict
Error: fuzzing failed

PaulRBerg avatar Jul 31 '25 11:07 PaulRBerg

yep, this should be fixed in the new release

lukacan avatar Jul 31 '25 11:07 lukacan

thanks for the quick response, @lukacan - any ETA for when the new release will be out?

PaulRBerg avatar Jul 31 '25 11:07 PaulRBerg

you can use the rc.3, which is release candidate

lukacan avatar Aug 05 '25 16:08 lukacan

But we expect to release 0.11 in the upcoming days.

lukacan avatar Aug 05 '25 16:08 lukacan

rc.3 worked, thanks

PaulRBerg avatar Aug 06 '25 10:08 PaulRBerg