hyperweb-io / hyperweb-io/cosmos-kit

MsgVoteWeighted issue

Open
#187 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
201
Forks
159
PR merge metrics
No merged PRs in 30d

Description

I have a function that creates the transaction data for a MsgWeightedVote and uses stargate to sign and broadcast via any wallet provider ala cosmology tools.

Im receiving

Eror: Broadcasting transaction failed with code 4 (codespace: sdk). Log: signature verification failed; please verify account number (87516), sequence (479) and chain-id (osmosis-1): unauthorized
at SigningStargateClient.broadcastTx

Typically this error is my own fault but ive gone over the parameters and they are all correct.

I read the issue from last year for MsgWeightedVote about inputting the correct number type for the weights.

The unsigned transaction is as follows

{
"account_number": "87516",
"chain_id": "osmosis-1",
"fee": {
"gas": "500000",
"amount": [
{
"denom": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2",
"amount": "888"
}
]
},
"memo": "",
"msgs": [
{
"type": "cosmos-sdk/MsgVoteWeighted",
"value": {
"options": [
{
"option": 1,
"weight": "500000000000000000"
},
{
"option": 2,
"weight": "500000000000000000"
}
],
"proposal_id": "493",
"voter": "osmo1dv3v662kd3pp6pxfagck4zyysas82adswgl2jf"
}
}
],
"sequence": "479"
}

I am using cosmos-kit from cosmology but I do not believe that is whats causing the issue as my normal vote transactions are working fine.

Please let me know if this is not the appropriate forum for this type of question

side-note: I get the same error with my unjail tx, figure whatever im doing wrong here I am also doing wrong there.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.