mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-03-21 22:33:10 +00:00
fix: bigint conversion
This commit is contained in:
parent
43c7843a5a
commit
7adb05431e
@ -180,12 +180,11 @@ export class RLNContract {
|
||||
* @returns Promise<number> The remaining rate limit that can be allocated
|
||||
*/
|
||||
public async getRemainingTotalRateLimit(): Promise<number> {
|
||||
// const [maxTotal, currentTotal] = await Promise.all([
|
||||
// this.contract.maxTotalRateLimit(),
|
||||
// this.contract.currentTotalRateLimit()
|
||||
// ]);
|
||||
// return maxTotal.sub(currentTotal).toNumber();
|
||||
return 10_000;
|
||||
const [maxTotal, currentTotal] = await Promise.all([
|
||||
this.contract.maxTotalRateLimit(),
|
||||
this.contract.currentTotalRateLimit()
|
||||
]);
|
||||
return Number(maxTotal) - Number(currentTotal);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user