Skip to content

Commit

Permalink
change package instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR committed Jan 9, 2025
1 parent e70a43c commit 763a065
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-peas-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@snapshot-labs/sx": patch
---

encrypt only shutter votes
2 changes: 1 addition & 1 deletion apps/ui/src/networks/offchain/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export function createActions(
authenticator: '',
strategies: [],
metadataUri: '',
privacy: proposal.privacy === 'none' ? '' : proposal.privacy,
privacy: proposal.privacy,
reason,
app: app || EDITOR_APP_NAME
};
Expand Down
2 changes: 1 addition & 1 deletion packages/sx.js/src/clients/offchain/ethereum-sig/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class EthereumSig {
metadata: ''
};

if (data.privacy) {
if (data.privacy !== 'none') {
message.privacy = data.privacy;
voteType = encryptedVoteTypes;
message.choice = await encryptChoices(
Expand Down

0 comments on commit 763a065

Please sign in to comment.