mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-13 11:03:09 +00:00
fix spy definition
This commit is contained in:
parent
77f1ca08c3
commit
468dc29f2e
@ -22,7 +22,6 @@ describe("RLN Contract abstraction", () => {
|
||||
rlnContract["_contract"] = {
|
||||
queryFilter: () => Promise.resolve([mockEvent()]),
|
||||
} as unknown as ethers.Contract;
|
||||
chai.spy.on(rlnContract, "_contract.queryFilter");
|
||||
|
||||
await rlnContract.fetchMembers(rlnInstance);
|
||||
|
||||
@ -45,9 +44,7 @@ describe("RLN Contract abstraction", () => {
|
||||
Promise.resolve({ wait: () => Promise.resolve(undefined) }),
|
||||
MEMBERSHIP_DEPOSIT: () => Promise.resolve(1),
|
||||
} as unknown as ethers.Contract;
|
||||
chai.spy.on(rlnContract, "contract.MEMBERSHIP_DEPOSIT");
|
||||
|
||||
const contractSpy = chai.spy.on(rlnContract, "_contract.register");
|
||||
const contractSpy = chai.spy.on(rlnContract["_contract"], "register");
|
||||
|
||||
await rlnContract.registerMember(rlnInstance, mockSignature);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user