Skip to content

Commit

Permalink
temporarily requests a signature when hitting the admin overview page
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwk committed May 22, 2024
1 parent 33fa83a commit 9e21d58
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/plugins/admin/AdminOverview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@
connectionSub = connection().signer.subscribe(async (signer) => {
fetchUserSupply(signer)
if (signer) {
const hash = `Metawater Admin Signature: ${new Date().toISOString()}`
console.log('hash is: ', hash)
const sig = await signer.signMessage(hash)
console.log('signature is: ', sig)
}
})
})
Expand Down

0 comments on commit 9e21d58

Please sign in to comment.