Merge pull request #188 from waku-org/danisharora/change-commitment-end

fix: change endianness on idCommitment
This commit is contained in:
Danish Arora 2023-01-18 17:23:12 +05:30 committed by GitHub
commit acec67f97f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -403,7 +403,9 @@
try { try {
registerButton.disabled = true; 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(); const price = await rlnContract.MEMBERSHIP_DEPOSIT();