From e1679b6bd9684a0bc2e04ed6828d57bdd730bc3a Mon Sep 17 00:00:00 2001 From: Sasha <118575614+weboko@users.noreply.github.com> Date: Wed, 14 Feb 2024 00:13:49 +0100 Subject: [PATCH] bug: fix access to the network (#97) --- src/rln.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rln.ts b/src/rln.ts index 6280b9e..373f881 100644 --- a/src/rln.ts +++ b/src/rln.ts @@ -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(