Skip to content

Commit

Permalink
ts: Remove anchor-deprecated-state feature (#2717)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored Dec 3, 2023
1 parent a423f78 commit dfee958
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The minor version will be incremented upon a breaking change and the patch versi

- cli: Make `cargo build-sbf` the default build command ([#2694](https://github.com/coral-xyz/anchor/pull/2694)).
- cli: Require explicit `overflow-checks` flag ([#2716](https://github.com/coral-xyz/anchor/pull/2716)).
- ts: Remove `anchor-deprecated-state` feature ([#2717](https://github.com/coral-xyz/anchor/pull/2717)).

## [0.29.0] - 2023-10-16

Expand Down
3 changes: 1 addition & 2 deletions tests/lockup/programs/lockup/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ name = "lockup"
[features]
no-entrypoint = []
cpi = ["no-entrypoint"]
anchor-deprecated-state = []
default = ["anchor-deprecated-state"]
default = []

[dependencies]
anchor-lang = { path = "../../../../lang" }
Expand Down
3 changes: 1 addition & 2 deletions tests/lockup/programs/registry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ name = "registry"
[features]
no-entrypoint = []
cpi = ["no-entrypoint"]
anchor-deprecated-state = []
default = ["anchor-deprecated-state"]
default = []

[dependencies]
anchor-lang = { path = "../../../../lang" }
Expand Down
4 changes: 1 addition & 3 deletions tests/lockup/tests/lockup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ const anchor = require("@coral-xyz/anchor");
const serumCmn = require("@project-serum/common");
const { TOKEN_PROGRAM_ID } = require("@solana/spl-token");
const utils = require("./utils");
const { assert, expect } = require("chai");
const { assert } = require("chai");
const nativeAssert = require("assert");

anchor.utils.features.set("anchor-deprecated-state");

describe("Lockup and Registry", () => {
// Read the provider from the configured environmnet.
const provider = anchor.AnchorProvider.env();
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/anchor/src/utils/features.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const _AVAILABLE_FEATURES = new Set(["anchor-deprecated-state", "debug-logs"]);
const _AVAILABLE_FEATURES = new Set(["debug-logs"]);

const _FEATURES = new Map();

Expand Down

1 comment on commit dfee958

@vercel
Copy link

@vercel vercel bot commented on dfee958 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

anchor-docs – ./

anchor-docs-git-master-200ms.vercel.app
anchor-docs-200ms.vercel.app
anchor-lang.com
www.anchor-lang.com

Please sign in to comment.