mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-03-21 22:33:10 +00:00
fix: returns for ratelimit
This commit is contained in:
parent
eb555e95b5
commit
5e19700f40
@ -394,7 +394,8 @@ export class RLNLightContract {
|
||||
membership: {
|
||||
address,
|
||||
treeIndex: membershipId,
|
||||
chainId: network.chainId
|
||||
chainId: network.chainId,
|
||||
rateLimit: decodedData.membershipRateLimit.toNumber()
|
||||
}
|
||||
};
|
||||
} catch (error) {
|
||||
@ -519,7 +520,8 @@ export class RLNLightContract {
|
||||
membership: {
|
||||
address,
|
||||
treeIndex: membershipId,
|
||||
chainId: network.chainId
|
||||
chainId: network.chainId,
|
||||
rateLimit: decodedData.membershipRateLimit.toNumber()
|
||||
}
|
||||
};
|
||||
} catch (error) {
|
||||
|
||||
@ -3,7 +3,7 @@ import { sha256 } from "@noble/hashes/sha256";
|
||||
import { Logger } from "@waku/utils";
|
||||
import { ethers } from "ethers";
|
||||
|
||||
import { SEPOLIA_CONTRACT } from "./contract/constants.js";
|
||||
import { LINEA_CONTRACT } from "./contract/constants.js";
|
||||
import { RLNLightContract } from "./contract/rln_light_contract.js";
|
||||
import { IdentityCredential } from "./identity.js";
|
||||
import { Keystore } from "./keystore/index.js";
|
||||
@ -120,10 +120,10 @@ export class RLNLightInstance {
|
||||
const address =
|
||||
credentials?.membership.address ||
|
||||
options.address ||
|
||||
SEPOLIA_CONTRACT.address;
|
||||
LINEA_CONTRACT.address;
|
||||
|
||||
if (address === SEPOLIA_CONTRACT.address) {
|
||||
chainId = SEPOLIA_CONTRACT.chainId;
|
||||
if (address === LINEA_CONTRACT.address) {
|
||||
chainId = LINEA_CONTRACT.chainId;
|
||||
}
|
||||
|
||||
const signer = options.signer || (await extractMetaMaskSigner());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user