mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-03-21 22:33:10 +00:00
Merge branch 'master' of github.com:waku-org/js-waku into feat/rln-light-without-zerokit
This commit is contained in:
commit
1e6e9092fa
5
.gitignore
vendored
5
.gitignore
vendored
@ -12,4 +12,7 @@ docs
|
||||
test-results
|
||||
playwright-report
|
||||
example
|
||||
packages/discovery/mock_local_storage
|
||||
packages/discovery/mock_local_storage
|
||||
.cursorrules
|
||||
.giga
|
||||
.cursor
|
||||
@ -75,6 +75,10 @@ describe("RLN Contract abstraction - RLN", () => {
|
||||
const decryptedCredentials =
|
||||
await rlnContract.registerWithIdentity(identity);
|
||||
|
||||
if (!decryptedCredentials) {
|
||||
throw new Error("Failed to retrieve credentials");
|
||||
}
|
||||
|
||||
verifyRegistration(
|
||||
decryptedCredentials,
|
||||
identity,
|
||||
|
||||
@ -130,7 +130,7 @@ export function createRegisterStub(
|
||||
event: "MembershipRegistered",
|
||||
args: {
|
||||
idCommitment: formatIdCommitment(identity.IDCommitmentBigInt),
|
||||
rateLimit: DEFAULT_RATE_LIMIT,
|
||||
membershipRateLimit: ethers.BigNumber.from(DEFAULT_RATE_LIMIT),
|
||||
index: ethers.BigNumber.from(1)
|
||||
}
|
||||
}
|
||||
|
||||
@ -231,7 +231,8 @@ describe("Keystore", () => {
|
||||
const membership = {
|
||||
chainId: "0xAA36A7",
|
||||
treeIndex: 8,
|
||||
address: "0x8e1F3742B987d8BA376c0CBbD7357fE1F003ED71"
|
||||
address: "0x8e1F3742B987d8BA376c0CBbD7357fE1F003ED71",
|
||||
rateLimit: undefined
|
||||
} as unknown as MembershipInfo;
|
||||
|
||||
const store = Keystore.create();
|
||||
@ -246,6 +247,11 @@ describe("Keystore", () => {
|
||||
expectedHash,
|
||||
DEFAULT_PASSWORD
|
||||
);
|
||||
|
||||
if (!actualCredentials) {
|
||||
throw new Error("Failed to retrieve credentials");
|
||||
}
|
||||
|
||||
expect(actualCredentials).to.deep.equalInAnyOrder({
|
||||
identity,
|
||||
membership
|
||||
@ -276,7 +282,8 @@ describe("Keystore", () => {
|
||||
const membership = {
|
||||
chainId: "0xAA36A7",
|
||||
treeIndex: 8,
|
||||
address: "0x8e1F3742B987d8BA376c0CBbD7357fE1F003ED71"
|
||||
address: "0x8e1F3742B987d8BA376c0CBbD7357fE1F003ED71",
|
||||
rateLimit: undefined
|
||||
} as unknown as MembershipInfo;
|
||||
|
||||
const store = Keystore.fromObject(NWAKU_KEYSTORE as any);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user