Closed a5-pickle closed 4 months ago
Consider using https://github.com/coral-xyz/anchor/pull/2766.
When using the anchor lang fork, be sure to use this:
[patch.crates-io]
anchor-lang = { git = ... }
anchor-spl = { git = ... }
And may be related to https://github.com/coral-xyz/anchor/issues/2835.
With 1.17, test validator dies with validator logs resembling:
Attaching an example log here. validator-1708006722959.log
Be careful with CI like here: https://github.com/wormhole-foundation/example-native-token-transfers/pull/391.
In playing around with upticking another repo to Anchor 0.30.0, there may be hope here.
Use Solana CLI >=1.18.10, solana_program >=1.18.10, update avm and anchor CLIs to 0.30.0.
Also be aware of this: https://github.com/anza-xyz/agave/issues/522, which will require us to write a custom script to load forked programs because any instruction that performs CPI to any of these loaded programs will cause the following error in our test validator:
SendTransactionError: failed to send transaction: Transaction simulation failed: This program may not be used for executing instructions
With 1.17, test validator dies with validator logs resembling:
With >=1.18, <1.18.8, stack errors occur when invoking any instructions even with a refactor of account contexts.
And with >=1.18.8, stack errors can be resolved with a refactor of account contexts, but there is an issue with deserialization. One example is with the initialize instruction, where inputs resemble:
But when debugging the Anchor instruction data, we get:
So right now, it is impossible to consider building without solana CLI 1.16.27.