Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solana: anchor upgrade to 0.30.1 #576

Closed
wants to merge 14 commits into from
Closed
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/solana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:

rust:
name: rust tests
runs-on: ubuntu-latest
runs-on: ubuntu-latest-8cores-32GB
needs: [get_anchor_version, build_solana]
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:

lint:
name: lint + check artifacts
runs-on: ubuntu-latest
runs-on: ubuntu-latest-8cores-32GB
needs: [get_anchor_version, build_solana]
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
rm -rf target/idl &&\
anchor build"

go install github.com/gagliardetto/anchor-go@v0.2.3
go install github.com/fragmetric-labs/solana-anchor-go
./scripts/anchor-go-gen.sh
make format
git diff --exit-code
Expand Down
2 changes: 1 addition & 1 deletion chains/solana/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BIN_DIR = bin
export GOPATH ?= $(shell go env GOPATH)
export GO111MODULE ?= on
export ANCHOR_VERSION ?=v0.29.0
export ANCHOR_VERSION ?=v0.30.1
export ANCHOR_IMAGE ?= backpackapp/build:$(ANCHOR_VERSION)
# Allow overriding the output directory for docker builds
TARGET_DIR ?= $(PWD)/contracts/target
Expand Down
6 changes: 5 additions & 1 deletion chains/solana/contracts/Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
[workspace]
members = ["programs/*"]

[toolchain]
anchor_version = "0.29.0"
anchor_version = "0.30.1"

[features]
seeds = false
skip-lint = false
resolution = false

[registry]
url = "https://anchor.projectserum.com"
Expand Down
Loading