Skip to content

Commit d2251c5

Browse files
committed
Revert "update anchor version to 0.31.1"
This reverts commit ca12179.
1 parent ca12179 commit d2251c5

File tree

49 files changed

+63
-63
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+63
-63
lines changed

basics/account-data/anchor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"@coral-xyz/anchor": "0.31.1",
3+
"@coral-xyz/anchor": "^0.30.0",
44
"@solana/web3.js": "^1.95.2"
55
},
66
"devDependencies": {

basics/checking-accounts/anchor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"type": "module",
33
"dependencies": {
4-
"@coral-xyz/anchor": "0.31.1",
4+
"@coral-xyz/anchor": "^0.30.0",
55
"@solana/web3.js": "^1.95.2"
66
},
77
"devDependencies": {

basics/close-account/anchor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
55
},
66
"dependencies": {
7-
"@coral-xyz/anchor": "0.31.1",
7+
"@coral-xyz/anchor": "^0.30.0",
88
"@solana/web3.js": "^1.95.2"
99
},
1010
"devDependencies": {

basics/counter/anchor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
55
},
66
"dependencies": {
7-
"@coral-xyz/anchor": "0.31.1",
7+
"@coral-xyz/anchor": "^0.30.0",
88
"@solana/web3.js": "^1.95.2"
99
},
1010
"devDependencies": {

basics/create-account/anchor/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"type": "module",
33
"dependencies": {
4-
"@coral-xyz/anchor": "0.31.1",
4+
"@coral-xyz/anchor": "^0.30.0",
55
"@solana/web3.js": "^1.95.2"
66
},
77
"devDependencies": {
8+
"anchor-bankrun": "^0.4.0",
9+
"solana-bankrun": "^0.3.0",
810
"@types/bn.js": "^5.1.0",
911
"@types/chai": "^4.3.0",
1012
"@types/mocha": "^9.0.0",
11-
"anchor-bankrun": "^0.4.0",
1213
"chai": "^4.4.1",
1314
"mocha": "^9.0.3",
14-
"solana-bankrun": "^0.3.0",
1515
"ts-mocha": "^10.0.0",
1616
"typescript": "^4.3.5"
1717
}

basics/cross-program-invocation/anchor/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
66
},
77
"dependencies": {
8-
"@coral-xyz/anchor": "0.31.1",
8+
"@coral-xyz/anchor": "^0.30.0",
99
"@solana/web3.js": "^1.95.2"
1010
},
1111
"devDependencies": {
12-
"@types/bn.js": "^5.1.0",
13-
"@types/chai": "^4.3.0",
14-
"@types/mocha": "^9.0.0",
1512
"anchor-bankrun": "^0.4.0",
13+
"solana-bankrun": "^0.3.0",
1614
"chai": "^4.3.4",
1715
"mocha": "^9.0.3",
18-
"prettier": "^2.6.2",
19-
"solana-bankrun": "^0.3.0",
2016
"ts-mocha": "^10.0.0",
21-
"typescript": "^4.3.5"
17+
"@types/bn.js": "^5.1.0",
18+
"@types/chai": "^4.3.0",
19+
"@types/mocha": "^9.0.0",
20+
"typescript": "^4.3.5",
21+
"prettier": "^2.6.2"
2222
}
2323
}

basics/cross-program-invocation/anchor/tests/bankrun.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { startAnchor } from 'solana-bankrun';
66
import type { Hand } from '../target/types/hand';
77
import type { Lever } from '../target/types/lever';
88

9-
import HAND_IDL from "../target/idl/hand.json" with { type: "json" };
10-
import LEVER_IDL from "../target/idl/lever.json" with { type: "json" };
9+
import { IDL as HAND_IDL } from "../target/idl/hand.json" with { type: "json" };
10+
import { IDL as LEVER_IDL } from "../target/idl/lever.json" with { type: "json" };
1111
const HAND_PROGRAM_ID = new PublicKey(HAND_IDL.address);
1212
const LEVER_PROGRAM_ID = new PublicKey(LEVER_IDL.address);
1313

basics/favorites/anchor/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
66
},
77
"dependencies": {
8-
"@coral-xyz/anchor": "0.31.1",
8+
"@coral-xyz/anchor": "^0.30.0",
99
"@solana-developers/helpers": "^2.0.0",
1010
"@solana/web3.js": "^1.95.2"
1111
},
1212
"license": "MIT",
1313
"devDependencies": {
14+
"anchor-bankrun": "^0.4.0",
15+
"solana-bankrun": "^0.3.0",
1416
"@types/bn.js": "^5.1.0",
1517
"@types/chai": "^4.3.0",
1618
"@types/mocha": "^9.0.0",
17-
"anchor-bankrun": "^0.4.0",
1819
"chai": "^4.3.4",
1920
"mocha": "^9.0.3",
2021
"prettier": "^2.6.2",
21-
"solana-bankrun": "^0.3.0",
2222
"ts-mocha": "^10.0.0",
2323
"typescript": "^4.3.5"
2424
}

basics/favorites/anchor/programs/favorites/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ idl-build = ["anchor-lang/idl-build"]
1818

1919
[dependencies]
2020
anchor-lang = {version = "0.31.1", features = ["init-if-needed"]}
21+
solana-program = "=2.0.3"

basics/hello-solana/anchor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"type": "module",
33
"dependencies": {
4-
"@coral-xyz/anchor": "0.31.1",
4+
"@coral-xyz/anchor": "^0.30.0",
55
"@solana/web3.js": "^1.95.2"
66
},
77
"devDependencies": {

0 commit comments

Comments
 (0)