fix: determine start options

This commit is contained in:
Danish Arora 2025-03-08 21:34:45 +05:30
parent 76f86de9c7
commit df5b9c6afa
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E

View File

@ -160,7 +160,7 @@ export class RLNInstance {
try {
const { credentials, keystore } =
await RLNInstance.decryptCredentialsIfNeeded(options.credentials);
const { signer, address } = await this.determineStartOptions(
const { signer, address, rateLimit } = await this.determineStartOptions(
options,
credentials
);
@ -174,7 +174,7 @@ export class RLNInstance {
this._contract = await RLNContract.init(this, {
address: address!,
signer: signer!,
rateLimit: options.rateLimit ?? this.zerokit.getRateLimit
rateLimit: rateLimit ?? this.zerokit.getRateLimit
});
this.started = true;
} finally {