From 4540c8253acc2708ffd1085918e5f82f0e6c71e2 Mon Sep 17 00:00:00 2001 From: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Sun, 19 May 2024 16:44:10 +0200 Subject: [PATCH] Bump minimum Solana crate versions to `1.17.3` (#2975) --- CHANGELOG.md | 1 + cli/Cargo.toml | 10 +++++----- client/Cargo.toml | 6 +++--- client/example/Cargo.toml | 2 +- lang/Cargo.toml | 2 +- tests/zero-copy/programs/zero-copy/Cargo.toml | 2 +- 6 files changed, 12 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20fb04338..f132e5ceb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ The minor version will be incremented upon a breaking change and the patch versi - lang: Fix using defined types in instruction parameters with `declare_program!` ([#2959](https://github.com/coral-xyz/anchor/pull/2959)). - lang: Fix using const generics with `declare_program!` ([#2965](https://github.com/coral-xyz/anchor/pull/2965)). - lang: Fix using `Vec` type with `declare_program!` ([#2966](https://github.com/coral-xyz/anchor/pull/2966)). +- lang: Fix `ProgramError::ArithmeticOverflow` not found error ([#2975](https://github.com/coral-xyz/anchor/pull/2975)). ### Breaking diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 09af22088..8e6e10a20 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -35,11 +35,11 @@ semver = "1.0.4" serde = { version = "1.0.122", features = ["derive"] } serde_json = "1.0" shellexpand = "2.1.0" -solana-client = "1.16" -solana-cli-config = "1.16" -solana-faucet = "1.16" -solana-program = "1.16" -solana-sdk = "1.16" +solana-client = "1.17.3" +solana-cli-config = "1.17.3" +solana-faucet = "1.17.3" +solana-program = "1.17.3" +solana-sdk = "1.17.3" # Pin solang-parser because it may break in a backwards incompatible way in minor versions solang-parser = "=0.3.3" syn = { version = "1.0.60", features = ["full", "extra-traits"] } diff --git a/client/Cargo.toml b/client/Cargo.toml index 777233808..3ded37c97 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -21,9 +21,9 @@ anyhow = "1" futures = "0.3" regex = "1" serde = { version = "1", features = ["derive"] } -solana-account-decoder = "1.16" -solana-client = "1.16" -solana-sdk = "1.16" +solana-account-decoder = "1.17.3" +solana-client = "1.17.3" +solana-sdk = "1.17.3" thiserror = "1" tokio = { version = "1", features = ["rt", "sync"] } url = "2" diff --git a/client/example/Cargo.toml b/client/example/Cargo.toml index 823f5f991..203d2f4ac 100644 --- a/client/example/Cargo.toml +++ b/client/example/Cargo.toml @@ -20,5 +20,5 @@ events = { path = "../../tests/events/programs/events", features = ["no-entrypoi anyhow = "1.0.32" clap = { version = "4.2.4", features = ["derive"] } shellexpand = "2.1.0" -solana-sdk = "1.16" +solana-sdk = "1.17.3" tokio = { version = "1", features = ["full"] } diff --git a/lang/Cargo.toml b/lang/Cargo.toml index 475a5a6dd..ddc0c91c6 100644 --- a/lang/Cargo.toml +++ b/lang/Cargo.toml @@ -57,7 +57,7 @@ base64 = "0.21" bincode = "1" borsh = ">=0.9, <0.11" bytemuck = "1" -solana-program = "1.16" +solana-program = "1.17.3" thiserror = "1" # TODO: Remove. This crate has been added to fix a build error with the 1.16.0 release. getrandom = { version = "0.2", features = ["custom"] } diff --git a/tests/zero-copy/programs/zero-copy/Cargo.toml b/tests/zero-copy/programs/zero-copy/Cargo.toml index 1fcdb10c8..30637aeec 100644 --- a/tests/zero-copy/programs/zero-copy/Cargo.toml +++ b/tests/zero-copy/programs/zero-copy/Cargo.toml @@ -23,4 +23,4 @@ bytemuck = {version = "1.4.0", features = ["derive", "min_const_generics"]} [dev-dependencies] anchor-client = { path = "../../../../client", features = ["debug", "async"] } -solana-program-test = "1.16" +solana-program-test = "1.17.3"