Open ukint-vs opened 12 months ago
There is a bug occured when I decoded tx with Nay vote and switched to Submission tab and the vote became Aye.
Nay
Submission
Aye
Example tx for Polkadot: Nay vote: 0x140000000000000000000000000000000000000000
0x140000000000000000000000000000000000000000
You can see that encoding details is changed to Aye value.
And in js api this snippet returns the same txs:
const tx = api.tx.convictionVoting.vote(1, { Standard: { vote: { aye: false, conviction: '', }, balance: 0, }, }); console.log(tx.method.args[1].toHuman()) console.log(api.tx(tx.toHex()).method.args[1].toHuman())
{ Standard: { vote: { conviction: 'None', vote: 'Nay' }, balance: '0' } } { Standard: { vote: { conviction: 'None', vote: 'Nay' }, balance: '0' } }
It should be Nay in the Submission tab. For now it defaults to Aye value.
This bug may result in the wrong tx being accidentally sent.
Version:
Environment:
Language:
@jacogr can you check please this behaivor 😭
There is a bug occured when I decoded tx with
Nay
vote and switched toSubmission
tab and the vote becameAye
.Example tx for Polkadot: Nay vote:
0x140000000000000000000000000000000000000000
You can see that encoding details is changed to Aye value.
And in js api this snippet returns the same txs:
It should be
Nay
in the Submission tab. For now it defaults toAye
value.This bug may result in the wrong tx being accidentally sent.
Version:
Environment:
Language: