From a5f3ce20ae12882b5233c0ae27c05724adf692b7 Mon Sep 17 00:00:00 2001 From: Jaco Date: Fri, 11 Jun 2021 13:02:24 +0300 Subject: [PATCH] Fix internal bn/* imports (#1010) --- CHANGELOG.md | 12 ++++++++++++ packages/util/src/bn/sqrt.ts | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e5cc6b62..cab2c9142 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # CHANGELOG +## master + +Contributed: + +- Add Ledger support for Edgeware (Thanks to https://github.com/raykyri) +- Fix `naclSeal` doc types (Thanks to https://github.com/agustinustheo) + +Changes: + +- Export `BN` in `@polkadot/util` + + ## 6.7.1 Jun 6, 2021 Changes: diff --git a/packages/util/src/bn/sqrt.ts b/packages/util/src/bn/sqrt.ts index 667b0d652..6c4dc8cf6 100644 --- a/packages/util/src/bn/sqrt.ts +++ b/packages/util/src/bn/sqrt.ts @@ -4,7 +4,8 @@ import type { ToBn } from '../types'; import { assert } from '../assert'; -import { BN, BN_MAX_INTEGER, BN_ONE, BN_ZERO } from '../bn'; +import { BN } from './bn'; +import { BN_MAX_INTEGER, BN_ONE, BN_ZERO } from './consts'; import { bnToBn } from './toBn'; const SQRT_MAX_SAFE_INTEGER = new BN(94906265);