mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-03-21 22:33:10 +00:00
chore: update types
This commit is contained in:
parent
8f85be3b34
commit
990186355e
@ -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}`
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user