trident icon indicating copy to clipboard operation
trident copied to clipboard

🐛 [BUG] - Examples are using outdated anchor-lang

Open jiaxi-xu-fsx opened this issue 1 year ago • 1 comments

Description

The example 'unchecked-arithmetic-0' has outdated 'anchor-lang' in cargo.toml. It should be anchor-lang = "0.30.1" instead of anchor-lang = "0.29.0"

Reproduction steps

1. Run 'anchor build'
2. See error

Reproduction URL

No response

Screenshots

Logs

anchor build
`anchor` 0.29.0 is not installed with `avm`. Installing...

    Updating git repository `https://github.com/coral-xyz/anchor`
    Updating git submodule `https://github.com/openbook-dex/program`
...

OS

Ubuntu 24.04

jiaxi-xu-fsx avatar Feb 23 '25 05:02 jiaxi-xu-fsx

Hello, this is intentional. Trident supports both version 29 and version 30. The error you are experiencing is not caused by Trident. You need to install version 0.29.0 first.

lukacan avatar Feb 23 '25 07:02 lukacan