solana-labs / oyster

oyster.vercel.app
Apache License 2.0
116 stars 127 forks source link

Governance: Fix VoteType enum #590

Closed 0xShuk closed 1 year ago

0xShuk commented 1 year ago

The MULTI_CHOICE type in VoteType enum is wrongly configured. The type has four fields - ChoiceType, minVoterOptions, maxVoterOptions and maxWinningOptions, but currently it is wrongly configured to cover only one type - ChoiceCount.

As a result, withCreateProposal function can't handle the creation of multi-choice proposals and getProposal api can't deserialize the multi-choice proposal.

vercel[bot] commented 1 year ago

@0xShuk is attempting to deploy a commit to the Solana Labs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 1 year ago

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

Name Status Preview Comments Updated (UTC)
oyster-governance ❌ Failed (Inspect) Jul 19, 2023 4:35pm