Skip to content

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

@PaulRBerg

Description

@PaulRBerg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions