gamedaoco / gamedao-beta

https://beta.gamedao.co
Apache License 2.0
9 stars 1 forks source link

Chain state responses for any proposal_states with 1 #246

Closed 5-mark closed 2 years ago

5-mark commented 2 years ago

Describe the bug The state query gameDaoGovernance.proposalStates delivery for any Proposal Hash the same value (1) even though there should be 7 different states possible. Thats the reason why on the proposal page all proposal seem "active".

To Reproduce Steps to reproduce the behavior:

  1. Go to polkadot.js wallet > developer > Chain State
  2. Select gameDaoGovernance and select proposalStates(Hash)
  3. enter proposal hash from a proposal which is expired and rejected or accepted
  4. submit query
  5. retrieve 1 back as a result

Expected behavior If a proposal has expired and was accepted the value 2 should be coming back according to: image

Additional context probably to be fixed on chain