From d19aaddfbe9856ddcfb6c3f35d839e5e03efd848 Mon Sep 17 00:00:00 2001 From: danisharora099 Date: Fri, 23 Dec 2022 18:32:35 +0530 Subject: [PATCH] fix: unaddressed variable --- rln-js/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rln-js/index.html b/rln-js/index.html index 0fc64db..26beed9 100644 --- a/rln-js/index.html +++ b/rln-js/index.html @@ -280,7 +280,7 @@ importFromWalletButton.onclick = async () => { const signer = provider.getSigner(); - const signature = await signer.signMessage(signatureMessage); + const signature = await signer.signMessage(DEFAULT_SIGNATURE_MESSAGE); membershipKey = await rlnInstance.generateSeededMembershipKey( signature @@ -401,6 +401,7 @@ registerButton.disabled = true; const pubkey = ethers.BigNumber.from(membershipKey.IDCommitment); + const price = await rlnContract.MEMBERSHIP_DEPOSIT(); const signer = provider.getSigner();