Closed theghostmac closed 1 month ago
Hey, thank you for the comprehensive explanation and reporting the issue.
Please see https://github.com/coral-xyz/anchor/issues/2949#issuecomment-2098915818 as this is duplicate of https://github.com/coral-xyz/anchor/issues/2949.
Solana dependencies as specified (include other relevant dependencies).
For now, you can upgrade Solana dependencies to 1.18
or 1.17
to fix this error.
Description
While attempting to compile my project using
anchor-lang
version0.30.0
, I encountered an error related toProgramError
. Specifically, the compiler cannot find the variantArithmeticOverflow
inProgramError
.This issue arises when trying to compile the dependencies for my project, which also includes Solana libraries with specific version constraints due to other dependencies like
raydium-library
.Error Message
Steps to Reproduce
Cargo.toml
:anchor-lang = "0.30.0"
cargo build
.Additional Context
Anchor isn't a dependency in my project, instead it is a dependency of a dependency, so I reckon it is affecting more than just me.