From 763a065f513c67d2740244564a00497db9825d8c Mon Sep 17 00:00:00 2001 From: ChaituVR Date: Thu, 9 Jan 2025 22:33:34 +0530 Subject: [PATCH] change package instead --- .changeset/spotty-peas-fold.md | 5 +++++ apps/ui/src/networks/offchain/actions.ts | 2 +- packages/sx.js/src/clients/offchain/ethereum-sig/index.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/spotty-peas-fold.md diff --git a/.changeset/spotty-peas-fold.md b/.changeset/spotty-peas-fold.md new file mode 100644 index 000000000..d4815ee7c --- /dev/null +++ b/.changeset/spotty-peas-fold.md @@ -0,0 +1,5 @@ +--- +"@snapshot-labs/sx": patch +--- + +encrypt only shutter votes diff --git a/apps/ui/src/networks/offchain/actions.ts b/apps/ui/src/networks/offchain/actions.ts index 9c814b809..7e67f6385 100644 --- a/apps/ui/src/networks/offchain/actions.ts +++ b/apps/ui/src/networks/offchain/actions.ts @@ -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 }; diff --git a/packages/sx.js/src/clients/offchain/ethereum-sig/index.ts b/packages/sx.js/src/clients/offchain/ethereum-sig/index.ts index b414e6a44..9ab68db1f 100644 --- a/packages/sx.js/src/clients/offchain/ethereum-sig/index.ts +++ b/packages/sx.js/src/clients/offchain/ethereum-sig/index.ts @@ -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(