Change default ValidatorPrefs (#3244)
* Change default ValidatorPrefs * Linkage test * Previous default
This commit is contained in:
@@ -14,7 +14,7 @@ describe('Linkage', (): void => {
|
||||
// prefs sanity check
|
||||
expect(
|
||||
registry.createType(
|
||||
'ValidatorPrefs',
|
||||
'ValidatorPrefsWithCommission',
|
||||
'0x0284d717'
|
||||
).toHuman()
|
||||
).toEqual(PREFS);
|
||||
@@ -33,7 +33,7 @@ describe('Linkage', (): void => {
|
||||
// actual check
|
||||
expect(
|
||||
registry.createType(
|
||||
'(ValidatorPrefs, Linkage<AccountId>)' as 'u32',
|
||||
'(ValidatorPrefsWithCommission, Linkage<AccountId>)' as 'u32',
|
||||
'0x0284d7170001da30b68f54f686f586ddb29de12b682dd8bd1404566fb8a8db5dec20aa5b6b36'
|
||||
).toHuman()
|
||||
).toEqual([PREFS, LINKA]);
|
||||
|
||||
@@ -229,7 +229,7 @@ export default {
|
||||
},
|
||||
ValidatorIndex: 'u16',
|
||||
ValidatorIndexCompact: 'Compact<ValidatorIndex>',
|
||||
ValidatorPrefs: 'ValidatorPrefsWithCommission',
|
||||
ValidatorPrefs: 'ValidatorPrefsWithBlocked',
|
||||
ValidatorPrefsWithCommission: {
|
||||
commission: 'Compact<Perbill>'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user