fix: change endianness on idCommitment

ref: waku-org/js-rln#37
This commit is contained in:
danisharora099 2023-01-18 15:46:14 +05:30
parent a977e27b20
commit 0c53f95a2d
No known key found for this signature in database
GPG Key ID: FBD2BF500037F135
1 changed files with 3 additions and 1 deletions

View File

@ -403,7 +403,9 @@
try {
registerButton.disabled = true;
const pubkey = ethers.BigNumber.from(membershipKey.IDCommitment);
const idCommitment = membershipKey.IDCommitment;
const reversedArray = idCommitment.slice().reverse();
const pubkey = ethers.utils.hexlify(reversedArray).toString();
const price = await rlnContract.MEMBERSHIP_DEPOSIT();