Clean up debugging lines

This commit is contained in:
stubbsta 2025-04-22 15:03:24 +02:00
parent 39b5b7b189
commit 2f757efb18
2 changed files with 1 additions and 11 deletions

View File

@ -85,7 +85,6 @@ proc doRlnKeystoreGenerator*(conf: RlnKeystoreGeneratorConf) =
quit(1)
# 5. register on-chain
debug "credential idcommit", idCommitment = credential.idCommitment.inHex()
try:
waitFor groupManager.register(credential, conf.userMessageLimit)
except Exception, CatchableError:

View File

@ -547,16 +547,7 @@ method init*(g: OnchainGroupManager): Future[GroupManagerResult[void]] {.async.}
g.membershipIndex = some(keystoreCred.treeIndex)
g.userMessageLimit = some(keystoreCred.userMessageLimit)
# now we check on the contract if the commitment actually has a membership
let idCommitmentBytes = keystoreCred.identityCredential.idCommitment
let idCommitmentUInt256 = keystoreCred.identityCredential.idCommitment.toUInt256()
let idCommitmentHex = idCommitmentBytes.inHex()
debug "Keystore idCommitment in bytes",
idCommitmentBytes = idCommitmentBytes
debug "Keystore idCommitment in UInt256 ",
idCommitmentUInt256 = idCommitmentUInt256
debug "Keystore idCommitment in hex ",
idCommitmentHex = idCommitmentHex
let idCommitment = idCommitmentUInt256
let idCommitment = keystoreCred.identityCredential.idCommitment.toUInt256()
try:
let membershipExists = await wakuRlnContract
.isInMembershipSet(idCommitment).call()