Skip to content

Commit

Permalink
feat: use bn api with n suffix if an arg is number
Browse files Browse the repository at this point in the history
it is faster
  • Loading branch information
RolginRoman committed Mar 27, 2024
1 parent 3870598 commit c487fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/distributor/solana/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default class SolanaDistributorClient {
ixs.push(newClaim(args, accounts, this.programId));
}

if (data.amountLocked.gt(new BN("0"))) {
if (data.amountLocked.gtn(0)) {
ixs.push(claimLocked(accounts, this.programId));
}

Expand Down

0 comments on commit c487fe2

Please sign in to comment.