vegaprotocol / vega

A Go implementation of the Vega Protocol, a protocol for creating and trading derivatives on a fully decentralised network.
https://vega.xyz
GNU Affero General Public License v3.0
37 stars 22 forks source link

Proposal voting with insufficient tokens in epoch returns 500 from wallet #4819

Closed vega-paul closed 2 years ago

vega-paul commented 2 years ago

Walllet request

b'{"voteSubmission": {"proposalId": "b404e72441d713dacb6e86a822ef08ebf40c48f590dc0b6349767bf7b46c8c27", "value": "VALUE_YES"}, "propagate": true, "pubKey": "32789e83398d7803ed50f04fefd78076416ff744c22a729c0c89f3f1f9fd170d"}'

Wallet response

Invalid argument error from /api/v1/command

500 '{"error":"rpc error: code = InvalidArgument desc = InvalidArgument error","details":["party has insufficient tokens to submit votes in this epoch"]}'

Im expecting a 4xx error returned here rather than 500

wwestgarth commented 2 years ago

handled in 5439