Skip to content

Commit

Permalink
change sign message
Browse files Browse the repository at this point in the history
  • Loading branch information
ismi-abbas committed May 6, 2024
1 parent b4b3a4c commit 136aa5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 3 additions & 1 deletion src/app/vote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ const Vote = ({ submissions }: { submissions: SubmissionType[] }) => {
if (action === "vote") {
if (userStore.voteCountData.votes < MAX_VOTE_PER_USER) {
if (!userStore.isSigned) {
await primaryWallet.connector.signMessage("Vote for CC0");
await primaryWallet.connector.signMessage(
"By signing this message, I authorize my participation in voting for the CC0-LIB Zine Cover Art Round 3 hosted by CC0-LIB. I understand that my vote will be part of the community-based voting process, and I am not voting on behalf of any other participant. This single signature will allow me to cast votes for artworks throughout the duration of the round.",
);
userStore.setIsSigned(true);
}
userStore.vote(coverData.id);
Expand Down

0 comments on commit 136aa5f

Please sign in to comment.