From 3511513ee5ebcb2aa51a680263a6fa9eefff85f7 Mon Sep 17 00:00:00 2001 From: Sasha Date: Wed, 14 Feb 2024 00:07:37 +0100 Subject: [PATCH] bug: fix access to the network --- 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(