From 938f89d81b63ed8d11e6f484585474049107c852 Mon Sep 17 00:00:00 2001 From: sweetim Date: Tue, 5 Apr 2022 02:24:10 +0900 Subject: [PATCH] added bn.js types fixed #1711 (#1712) --- CHANGELOG.md | 1 + cli/src/template.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bbf2eff4..7d0f56fa1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ The minor version will be incremented upon a breaking change and the patch versi * avm: `avm install` no longer downloads the version if already installed in the machine ([#1670](https://github.com/project-serum/anchor/pull/1670)). * cli: make `anchor test` fail when used with `--skip-deploy` option and without `--skip-local-validator` option but there already is a running validator ([#1675](https://github.com/project-serum/anchor/pull/1675)). * lang: Return proper error instead of panicking if account length is smaller than discriminator in functions of `(Account)Loader` ([#1678](https://github.com/project-serum/anchor/pull/1678)). +* cli: Add `@types/bn.js` to `devDependencies` in cli template ([#1712](https://github.com/project-serum/anchor/pull/1712)). ### Breaking diff --git a/cli/src/template.rs b/cli/src/template.rs index 618b00a47..b3e82aaa5 100644 --- a/cli/src/template.rs +++ b/cli/src/template.rs @@ -237,6 +237,7 @@ pub fn ts_package_json() -> String { "chai": "^4.3.4", "mocha": "^9.0.3", "ts-mocha": "^8.0.0", + "@types/bn.js": "^5.1.0", "@types/chai": "^4.3.0", "@types/mocha": "^9.0.0", "typescript": "^4.3.5"