Skip to content

Commit

Permalink
fix(bigint): use bigint constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasGassmann committed Dec 17, 2019
1 parent 9ea100c commit 7d9108a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/WalletCommunicationClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export class WalletCommunicationClient {
) {}

private bigIntAbsolute(inputBigInt: any): BigInt {
if (inputBigInt < 0n) {
return inputBigInt * -1n
if (inputBigInt < BigInt(0)) {
return inputBigInt * BigInt(-1)
} else {
return inputBigInt
}
Expand Down

0 comments on commit 7d9108a

Please sign in to comment.