mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-08 08:33:08 +00:00
make better naming
This commit is contained in:
parent
a93be8e797
commit
b0684dab8a
@ -46,7 +46,7 @@ describe("RLN Contract abstraction", () => {
|
||||
} as unknown as ethers.Contract;
|
||||
const contractSpy = chai.spy.on(rlnContract["_contract"], "register");
|
||||
|
||||
await rlnContract.registerMember(rlnInstance, mockSignature);
|
||||
await rlnContract.registerWithSignature(rlnInstance, mockSignature);
|
||||
|
||||
chai.expect(contractSpy).to.have.been.called();
|
||||
});
|
||||
|
||||
@ -84,7 +84,7 @@ export class RLNContract {
|
||||
rlnInstance.insertMember(idCommitment);
|
||||
}
|
||||
|
||||
public async registerMember(
|
||||
public async registerWithSignature(
|
||||
rlnInstance: RLNInstance,
|
||||
signature: string
|
||||
): Promise<ethers.Event | undefined> {
|
||||
@ -92,10 +92,10 @@ export class RLNContract {
|
||||
signature
|
||||
);
|
||||
|
||||
return this.registerMemberFromMembershipKey(membershipKey);
|
||||
return this.registerWithKey(membershipKey);
|
||||
}
|
||||
|
||||
public async registerMemberFromMembershipKey(
|
||||
public async registerWithKey(
|
||||
membershipKey: MembershipKey
|
||||
): Promise<ethers.Event | undefined> {
|
||||
const depositValue = await this.contract.MEMBERSHIP_DEPOSIT();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user