Skip to content

Commit

Permalink
fix: add trailing comma and remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
mhchia committed Sep 22, 2023
1 parent 4e3336a commit 54e2293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
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

0 comments on commit 54e2293

Please sign in to comment.