From 7947f3e57705021084171e62ca459ea9166415e7 Mon Sep 17 00:00:00 2001 From: danisharora099 Date: Mon, 23 Jan 2023 16:03:09 +0530 Subject: [PATCH] fix: change var name a value is cannot be a default value if it's not configurable --- examples/rln-js/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/rln-js/index.html b/examples/rln-js/index.html index ec9206e..62fd950 100644 --- a/examples/rln-js/index.html +++ b/examples/rln-js/index.html @@ -205,7 +205,7 @@ let retrievedRLNEvents = false; const rlnInstancePromise = create(); - const DEFAULT_SIGNATURE_MESSAGE = + const SIGNATURE_MESSAGE = "The signature of this message will be used to generate your RLN credentials. Anyone accessing it may send messages on your behalf, please only share with the RLN dApp"; // Load zero-kit WASM blob. @@ -283,7 +283,7 @@ importFromWalletButton.onclick = async () => { const signer = provider.getSigner(); - const signature = await signer.signMessage(DEFAULT_SIGNATURE_MESSAGE); + const signature = await signer.signMessage(SIGNATURE_MESSAGE); membershipKey = await rlnInstance.generateSeededMembershipKey( signature