bug: fix access to the network

This commit is contained in:
Sasha 2024-02-14 00:07:37 +01:00
parent 86d4f56818
commit 3511513ee5
No known key found for this signature in database

View File

@ -381,7 +381,7 @@ export class RLNInstance {
}
const chainId = credentials.membership.chainId;
const network = await this._contract.registry.getNetwork();
const network = await this._contract.registry.provider.getNetwork();
const currentChainId = network.chainId;
if (chainId !== currentChainId) {
throw Error(