chore: update types

This commit is contained in:
Danish Arora 2025-04-04 15:57:51 +05:30
parent 8f85be3b34
commit 990186355e
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E

View File

@ -187,7 +187,7 @@ export class RLNCredentialsManager {
const currentChainId = await signer.getChainId();
log.info(`Current chain ID: ${currentChainId}`);
if (chainId && chainId !== currentChainId) {
if (chainId && chainId !== currentChainId.toString()) {
log.error(
`Chain ID mismatch: contract=${chainId}, current=${currentChainId}`
);
@ -260,7 +260,7 @@ export class RLNCredentialsManager {
const chainId = credentials.membership.chainId;
const network = await this.contract.provider.getNetwork();
const currentChainId = network.chainId;
if (chainId !== currentChainId) {
if (chainId !== currentChainId.toString()) {
throw Error(
`Failed to verify chain coordinates: credentials chainID=${chainId} is not equal to registryContract chainID=${currentChainId}`
);