mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-02 12:53:08 +00:00
parent
010d328942
commit
bc4548d6f5
@ -297,6 +297,12 @@
|
||||
updateFields();
|
||||
};
|
||||
|
||||
const changeEndianess = (hex) => {
|
||||
const bytes = ethers.utils.arrayify(hex);
|
||||
const reversed = bytes.reverse();
|
||||
return ethers.utils.hexlify(reversed);
|
||||
};
|
||||
|
||||
const checkChain = async (chainId) => {
|
||||
retrieveRLNDetailsButton.disabled = retrievedRLNEvents || chainId !== 5;
|
||||
registerButton.disabled = !(chainId === 5 && retrievedRLNEvents);
|
||||
@ -400,7 +406,8 @@
|
||||
try {
|
||||
registerButton.disabled = true;
|
||||
|
||||
const pubkey = ethers.BigNumber.from(membershipKey.IDCommitment);
|
||||
const _pubkey = ethers.BigNumber.from(membershipKey.IDCommitment);
|
||||
const pubkey = changeEndianess(_pubkey.toHexString());
|
||||
|
||||
const price = await rlnContract.MEMBERSHIP_DEPOSIT();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user