From c0869623024bbf3671938dad03b131ff2ac54345 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Mon, 19 Apr 2021 20:09:39 -0400 Subject: [PATCH] Fixed BigNumber toBigInt return type (#1485). --- packages/bignumber/src.ts/bignumber.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bignumber/src.ts/bignumber.ts b/packages/bignumber/src.ts/bignumber.ts index 807a1ccb3..b57dc35dc 100644 --- a/packages/bignumber/src.ts/bignumber.ts +++ b/packages/bignumber/src.ts/bignumber.ts @@ -190,7 +190,7 @@ export class BigNumber implements Hexable { return null; } - toBigInt(): BigInt { + toBigInt(): bigint { try { return BigInt(this.toString()); } catch (e) { }