Fixed BigNumber toBigInt return type (#1485).

This commit is contained in:
Richard Moore 2021-04-19 20:09:39 -04:00
parent c0daf437f7
commit c086962302
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -190,7 +190,7 @@ export class BigNumber implements Hexable {
return null;
}
toBigInt(): BigInt {
toBigInt(): bigint {
try {
return BigInt(this.toString());
} catch (e) { }