bug: fix access to the network (#97)

This commit is contained in:
Sasha 2024-02-14 00:13:49 +01:00 committed by GitHub
parent 86d4f56818
commit e1679b6bd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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(