Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: putVote was using wrong identity for nonce #1907

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

pauldelucia
Copy link
Member

@pauldelucia pauldelucia commented Jun 26, 2024

Issue being fixed or feature implemented

Wrong identity was being used for nonce

What was done?

Obtain voting identity id from proTxHash and voting public key and then use that.

Alternatively, we could just pass the voting identity id, but I didn't go that route in this PR.

How Has This Been Tested?

TUI

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@pauldelucia pauldelucia changed the title fix: PutVote was using wrong identity for nonce fix: putVote was using wrong identity for nonce Jun 26, 2024
packages/rs-sdk/src/platform/transition/vote.rs Outdated Show resolved Hide resolved
packages/rs-sdk/src/platform/transition/vote.rs Outdated Show resolved Hide resolved
@pauldelucia pauldelucia requested a review from lklimek June 27, 2024 07:50
@pauldelucia pauldelucia merged commit 93b2a86 into test/mn-voting-sdk-2 Jun 27, 2024
2 checks passed
@pauldelucia pauldelucia deleted the test/mn-voting-sdk-2-fix branch June 27, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants