Skip to content

Commit

Permalink
feat: update Anchor to version 0.30.1
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Jul 23, 2024
1 parent 992a701 commit 5b44130
Show file tree
Hide file tree
Showing 17 changed files with 162 additions and 124 deletions.
2 changes: 1 addition & 1 deletion packages/create-solana-dapp/lib/final-note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function finalNote(args: GetArgsResult & { target: string }): string {
lines.push(
...[
yellow(`Found Anchor version ${version}. Expected Anchor version ${requiredVersion}.`),
'https://www.anchor-lang.com/release-notes/0.30.0',
'https://www.anchor-lang.com/release-notes/0.30.1',
],
)
} else {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-solana-dapp/lib/validate-anchor-version.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { parseVersion } from './parse-version'

const requiredVersion = '0.30.0'
const requiredVersion = '0.30.1'

function getAnchorVersion(): string | undefined {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ exports[`anchor-application generator should generate app with "basic" template
"Anchor.toml": {
"content": [
"[toolchain]",
"anchor_version = "0.30.0"",
"anchor_version = "0.30.1"",
"[features]",
"seeds = false",
"skip-lint = false",
Expand Down Expand Up @@ -195,7 +195,7 @@ exports[`anchor-application generator should generate app with "basic" template
""name": "@proj/anchor-app",",
""version": "0.0.1",",
""dependencies": {",
""@coral-xyz/anchor": "^0.30.0",",
""@coral-xyz/anchor": "^0.30.1",",
""@solana/web3.js": "1.91.9"",
"},",
""main": "./index.cjs",",
Expand Down Expand Up @@ -228,7 +228,7 @@ exports[`anchor-application generator should generate app with "basic" template
"default = []",
"idl-build = ["anchor-lang/idl-build"]",
"[dependencies]",
"anchor-lang = "0.30.0"",
"anchor-lang = "0.30.1"",
],
"isBinary": false,
"path": "anchor-app/programs/my-program/Cargo.toml",
Expand Down Expand Up @@ -641,7 +641,7 @@ exports[`anchor-application generator should generate app with "counter" templat
"Anchor.toml": {
"content": [
"[toolchain]",
"anchor_version = "0.30.0"",
"anchor_version = "0.30.1"",
"[features]",
"seeds = false",
"skip-lint = false",
Expand Down Expand Up @@ -760,7 +760,7 @@ exports[`anchor-application generator should generate app with "counter" templat
""name": "@proj/anchor-app",",
""version": "0.0.1",",
""dependencies": {",
""@coral-xyz/anchor": "^0.30.0",",
""@coral-xyz/anchor": "^0.30.1",",
""@solana/web3.js": "1.91.9"",
"},",
""main": "./index.cjs",",
Expand Down Expand Up @@ -793,7 +793,7 @@ exports[`anchor-application generator should generate app with "counter" templat
"default = []",
"idl-build = ["anchor-lang/idl-build"]",
"[dependencies]",
"anchor-lang = "0.30.0"",
"anchor-lang = "0.30.1"",
],
"isBinary": false,
"path": "anchor-app/programs/my-program/Cargo.toml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`anchor-template generator should be able to generate two templates side
"Anchor.toml": {
"content": [
"[toolchain]",
"anchor_version = "0.30.0"",
"anchor_version = "0.30.1"",
"[features]",
"seeds = false",
"skip-lint = false",
Expand Down Expand Up @@ -57,7 +57,7 @@ exports[`anchor-template generator should be able to generate two templates side
"default = []",
"idl-build = ["anchor-lang/idl-build"]",
"[dependencies]",
"anchor-lang = "0.30.0"",
"anchor-lang = "0.30.1"",
],
"isBinary": false,
"path": "target/programs/counter-one/Cargo.toml",
Expand Down Expand Up @@ -161,7 +161,7 @@ exports[`anchor-template generator should be able to generate two templates side
"default = []",
"idl-build = ["anchor-lang/idl-build"]",
"[dependencies]",
"anchor-lang = "0.30.0"",
"anchor-lang = "0.30.1"",
],
"isBinary": false,
"path": "target/programs/counter-two/Cargo.toml",
Expand Down Expand Up @@ -1058,7 +1058,7 @@ exports[`anchor-template generator should generate files for base template 1`] =
"Anchor.toml": {
"content": [
"[toolchain]",
"anchor_version = "0.30.0"",
"anchor_version = "0.30.1"",
"[features]",
"seeds = false",
"skip-lint = false",
Expand Down Expand Up @@ -1142,7 +1142,7 @@ exports[`anchor-template generator should generate files for basic template 1`]
"Anchor.toml": {
"content": [
"[toolchain]",
"anchor_version = "0.30.0"",
"anchor_version = "0.30.1"",
"[features]",
"seeds = false",
"skip-lint = false",
Expand Down Expand Up @@ -1194,7 +1194,7 @@ exports[`anchor-template generator should generate files for basic template 1`]
"default = []",
"idl-build = ["anchor-lang/idl-build"]",
"[dependencies]",
"anchor-lang = "0.30.0"",
"anchor-lang = "0.30.1"",
],
"isBinary": false,
"path": "target/programs/basic/Cargo.toml",
Expand Down Expand Up @@ -1397,7 +1397,7 @@ exports[`anchor-template generator should generate files for counter template 1`
"Anchor.toml": {
"content": [
"[toolchain]",
"anchor_version = "0.30.0"",
"anchor_version = "0.30.1"",
"[features]",
"seeds = false",
"skip-lint = false",
Expand Down Expand Up @@ -1449,7 +1449,7 @@ exports[`anchor-template generator should generate files for counter template 1`
"default = []",
"idl-build = ["anchor-lang/idl-build"]",
"[dependencies]",
"anchor-lang = "0.30.0"",
"anchor-lang = "0.30.1"",
],
"isBinary": false,
"path": "target/programs/counter/Cargo.toml",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
anchor_version = "0.30.0"
anchor_version = "0.30.1"

[features]
seeds = false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
anchor_version = "0.30.0"
anchor_version = "0.30.1"

[features]
seeds = false
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ default = []
idl-build = ["anchor-lang/idl-build"]

[dependencies]
anchor-lang = "0.30.0"
anchor-lang = "0.30.1"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
anchor_version = "0.30.0"
anchor_version = "0.30.1"

[features]
seeds = false
Expand Down
Loading

0 comments on commit 5b44130

Please sign in to comment.