Skip to content

Commit

Permalink
Merge pull request #106 from Rate-Limiting-Nullifier/fix/lint-ci
Browse files Browse the repository at this point in the history
fix: add trailing comma and remove unused
  • Loading branch information
mhchia authored Sep 22, 2023
2 parents 4e3336a + 54e2293 commit c25c9d8
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 c25c9d8

Please sign in to comment.