mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-05 23:23:12 +00:00
bug: fix access to the network (#97)
This commit is contained in:
parent
86d4f56818
commit
e1679b6bd9
@ -381,7 +381,7 @@ export class RLNInstance {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const chainId = credentials.membership.chainId;
|
const chainId = credentials.membership.chainId;
|
||||||
const network = await this._contract.registry.getNetwork();
|
const network = await this._contract.registry.provider.getNetwork();
|
||||||
const currentChainId = network.chainId;
|
const currentChainId = network.chainId;
|
||||||
if (chainId !== currentChainId) {
|
if (chainId !== currentChainId) {
|
||||||
throw Error(
|
throw Error(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user