From 3a046d0a056da06029858fdf8f7d5e2fc80cc56c 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 807a1ccb3a..b57dc35dc3 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) { }