mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-02-08 07:43:14 +00:00
use another approach for typecasting
This commit is contained in:
parent
7263c47ddf
commit
3dd8758027
@ -18,9 +18,9 @@ describe("RLN Contract abstraction", () => {
|
||||
provider: voidSigner,
|
||||
});
|
||||
|
||||
rlnContract["_contract" as any] = {
|
||||
rlnContract["_contract"] = {
|
||||
queryFilter: () => Promise.resolve([mockEvent()]),
|
||||
};
|
||||
} as unknown as ethers.Contract;
|
||||
chai.spy.on(rlnContract, "contract.queryFilter");
|
||||
|
||||
await rlnContract.fetchMembers(rlnInstance);
|
||||
@ -39,9 +39,9 @@ describe("RLN Contract abstraction", () => {
|
||||
provider: voidSigner,
|
||||
});
|
||||
|
||||
rlnContract["_contract" as any] = {
|
||||
rlnContract["_contract"] = {
|
||||
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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user