Change default ValidatorPrefs (#3244)

* Change default ValidatorPrefs

* Linkage test

* Previous default
This commit is contained in:
Jaco Greeff
2021-03-01 08:59:38 +01:00
committed by GitHub
parent 147dbcf24f
commit b83b3a9437
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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>'
},