Merge pull request #193 from waku-org/fix-var-name

fix(rln-js): remove `DEFAULT` from `SIGNATURE_MESSAGE` variable
This commit is contained in:
Danish Arora 2023-01-23 20:08:44 +05:30 committed by GitHub
commit bd7fa8069f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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