Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add trailing comma and remove unused #106

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { MerkleProof } from './types'
import { DEFAULT_MERKLE_TREE_DEPTH, calculateIdentityCommitment, calculateRateCommitment } from './common'
import { RLNContract } from './contract-wrapper'
import { ethers } from 'ethers'
import poseidon from 'poseidon-lite'
import { WithdrawProver } from './circuit-wrapper'

export interface IRLNRegistry {
Expand Down
6 changes: 3 additions & 3 deletions src/rln.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,11 @@ export class RLN implements IRLN {
if (await this.isRegistered() === false) {
await this.registry.register(this.identityCommitment, userMessageLimit)
console.debug(
`User has registered: this.identityCommitment=${this.identityCommitment}, userMessageLimit=${userMessageLimit}`
`User has registered: this.identityCommitment=${this.identityCommitment}, userMessageLimit=${userMessageLimit}`,
)
} else {
console.debug(
`User has already registered before. Skip registration: this.identityCommitment=${this.identityCommitment}`
`User has already registered before. Skip registration: this.identityCommitment=${this.identityCommitment}`,
)
}
await this.setMessageIDCounter(messageIDCounter)
Expand Down Expand Up @@ -527,7 +527,7 @@ export class RLN implements IRLN {
console.warn(
'MessageIDCounter is not initialized but user has registered. Maybe the user has restarted the app? ' +
'A new counter is created automatically. If a counter has been persisted, consider setting it with ' +
'with `setMessageIDCounter`. Otherwise, it is possible for user to reuse the same message id.'
'with `setMessageIDCounter`. Otherwise, it is possible for user to reuse the same message id.',
)
}
// Safely cast `this.messageIDCounter` to `IMessageIDCounter` since it must have been set.
Expand Down