From cadccc3060b88ab2ca64aeb302717d2d1c95a897 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Thu, 22 Apr 2021 22:34:06 -0400 Subject: [PATCH] Add bigint to allowed BigNumberish types (#1472). --- 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 b57dc35dc3..1255f921a3 100644 --- a/packages/bignumber/src.ts/bignumber.ts +++ b/packages/bignumber/src.ts/bignumber.ts @@ -22,7 +22,7 @@ const _constructorGuard = { }; const MAX_SAFE = 0x1fffffffffffff; -export type BigNumberish = BigNumber | Bytes | string | number; +export type BigNumberish = BigNumber | Bytes | bigint | string | number; export function isBigNumberish(value: any): value is BigNumberish { return (value != null) && (