mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-03-22 23:03:36 +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();
|
const currentChainId = await signer.getChainId();
|
||||||
log.info(`Current chain ID: ${currentChainId}`);
|
log.info(`Current chain ID: ${currentChainId}`);
|
||||||
|
|
||||||
if (chainId && chainId !== currentChainId) {
|
if (chainId && chainId !== currentChainId.toString()) {
|
||||||
log.error(
|
log.error(
|
||||||
`Chain ID mismatch: contract=${chainId}, current=${currentChainId}`
|
`Chain ID mismatch: contract=${chainId}, current=${currentChainId}`
|
||||||
);
|
);
|
||||||
@ -260,7 +260,7 @@ export class RLNCredentialsManager {
|
|||||||
const chainId = credentials.membership.chainId;
|
const chainId = credentials.membership.chainId;
|
||||||
const network = await this.contract.provider.getNetwork();
|
const network = await this.contract.provider.getNetwork();
|
||||||
const currentChainId = network.chainId;
|
const currentChainId = network.chainId;
|
||||||
if (chainId !== currentChainId) {
|
if (chainId !== currentChainId.toString()) {
|
||||||
throw Error(
|
throw Error(
|
||||||
`Failed to verify chain coordinates: credentials chainID=${chainId} is not equal to registryContract chainID=${currentChainId}`
|
`Failed to verify chain coordinates: credentials chainID=${chainId} is not equal to registryContract chainID=${currentChainId}`
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user