Skip to content

Commit 3ad01d2

Browse files
authored
Add Vote override for conviction-voting (#4821)
1 parent 05b0ff2 commit 3ad01d2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/types-augment/src/lookup/substrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3454,7 +3454,7 @@ export default {
34543454
PalletConvictionVotingVoteAccountVote: {
34553455
_enum: {
34563456
Standard: {
3457-
vote: 'u8',
3457+
vote: 'Vote',
34583458
balance: 'u128',
34593459
},
34603460
Split: {

packages/types-augment/src/lookup/types-substrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3714,7 +3714,7 @@ declare module '@polkadot/types/lookup' {
37143714
export interface PalletConvictionVotingVoteAccountVote extends Enum {
37153715
readonly isStandard: boolean;
37163716
readonly asStandard: {
3717-
readonly vote: u8;
3717+
readonly vote: Vote;
37183718
readonly balance: u128;
37193719
} & Struct;
37203720
readonly isSplit: boolean;

packages/types/src/metadata/PortableRegistry/PortableRegistry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const PATHS_ALIAS = splitNamespace([
3535
// wildcard matching in place...
3636
// these have a specific encoding or logic, use a wildcard for {pallet, darwinia}_democracy
3737
'*_democracy::vote::Vote',
38+
'*_conviction_voting::vote::Vote',
3839
'*_identity::types::Data',
3940
// shorten some well-known types
4041
'primitive_types::*',

0 commit comments

Comments
 (0)