Ackee-Blockchain / trident

Rust-based framework to Fuzz Solana programs, designed to help you ship secure code.
https://ackee.xyz/trident/docs/latest/
MIT License
209 stars 19 forks source link

Anchor 0.29.0 support #121

Closed Ikrk closed 8 months ago

Ikrk commented 8 months ago

This PR introduces changes necessary to support Anchor 0.29.0.

In this version Anchor merged the PR https://github.com/coral-xyz/anchor/pull/2656 which changes the way how Accounts are handled. They are not cloned anymore but rather referenced which changed the signatures of methods/functions on many levels. Therefore the snapshot struct in Trdelnik was reworked to support the new handling.

Also, the the solana-program-test crate is broken, because the entry function generated by Anchor does not have the required signature anymore. There is an issue here: https://github.com/coral-xyz/anchor/pull/2711 The temporary workaround solution was to use this fixed fork of solana-program-test: https://github.com/dankelleher/solana/commit/3c285b5574722bd8e7ec4c7f659ec769b9aba5ce and to change the dependency to solana-program-anchor-fix

TODOs: