The latest version (0.30.0) is using ProgramError::ArithmeticOverflow which was added in https://github.com/solana-labs/solana/pull/33767 and does not exist before solana-program 1.17.3. However, we still support 1.16 in our version requirements:
We could potentially fix this by introducing a new error variant ourselves or using an existing error variant, but given we're going to need to bump our Solana version anyway, and the fact that 1.17.3 release was published ~8 months ago, it's better to just bump the versions.
Summary of changes
Bump the minimum version of all Solana crates to 1.17.3.
Problem
The latest version (
0.30.0
) is usingProgramError::ArithmeticOverflow
which was added in https://github.com/solana-labs/solana/pull/33767 and does not exist beforesolana-program 1.17.3
. However, we still support1.16
in our version requirements:https://github.com/coral-xyz/anchor/blob/518b73f21959efc86407ab1da03f538ae6c53121/lang/Cargo.toml#L60
We could potentially fix this by introducing a new error variant ourselves or using an existing error variant, but given we're going to need to bump our Solana version anyway, and the fact that
1.17.3
release was published ~8 months ago, it's better to just bump the versions.Summary of changes
Bump the minimum version of all Solana crates to
1.17.3
.Closes https://github.com/coral-xyz/anchor/issues/2949