Skip to content

Commit

Permalink
Add bigint to allowed BigNumberish types (#1472).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 23, 2021
1 parent 6519609 commit cadccc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bignumber/src.ts/bignumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) && (
Expand Down

0 comments on commit cadccc3

Please sign in to comment.