oyster icon indicating copy to clipboard operation
oyster copied to clipboard

fixed vote options serialization

Open yamijuan opened this issue 2 years ago • 5 comments

Fixed vote type serialization on Multiple choice vote type. It was using 16 bits but only sending one data, now it sends 2 option in the same 16 bits.

We also found a couple of inconsistencies!

yamijuan avatar Oct 19 '22 21:10 yamijuan

@yamijuan is attempting to deploy a commit to the Solana Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 19 '22 21:10 vercel[bot]

Fixed vote type serialization on Multiple choice vote type. It was using 16 bits but only sending one data, now it sends 2 option in the same 16 bits.

We also found a couple of inconsistencies!

Deserialisation should work with this fix because of the VoteTypeKind enum. Also by setting both max_voter_options and max_winning_options to the value of choiceCount this validation will pass

tyirenkyi avatar Oct 20 '22 12:10 tyirenkyi

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
oyster-governance ✅ Ready (Inspect) Visit Preview Oct 20, 2022 at 4:40PM (UTC)

vercel[bot] avatar Oct 20 '22 16:10 vercel[bot]

Fixed vote type serialization on Multiple choice vote type. It was using 16 bits but only sending one data, now it sends 2 option in the same 16 bits.

Are you planning to use or already using multi choice voting? I'm asking because we are planing to make some breaking changes to it and it would be better to wait. More details here https://github.com/solana-labs/solana-program-library/pull/3721

SebastianBor avatar Mar 14 '23 11:03 SebastianBor

We aren't using multiple choice right now

tyirenkyi avatar Mar 14 '23 11:03 tyirenkyi