Fix edgeware linting (#2691)
This commit is contained in:
parent
a4333c22c4
commit
8aa03542a0
@ -2,9 +2,13 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import * as edgewareDefinitions from 'edgeware-node-types/dist/definitions';
|
||||
|
||||
const edgTypes = Object.values(edgewareDefinitions)
|
||||
const edgTypes = Object
|
||||
.values(edgewareDefinitions)
|
||||
.reduce((res, { default: { types } }): object => ({ ...res, ...types }), {});
|
||||
|
||||
export default {
|
||||
@ -19,5 +23,5 @@ export default {
|
||||
StakingLedger: 'StakingLedgerTo223',
|
||||
Votes: 'VotesTo230',
|
||||
ReferendumInfo: 'ReferendumInfoTo239',
|
||||
Weight: 'u32',
|
||||
Weight: 'u32'
|
||||
};
|
||||
|
||||
@ -2,9 +2,13 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import * as edgewareDefinitions from 'edgeware-node-types/dist/definitions';
|
||||
|
||||
const edgTypes = Object.values(edgewareDefinitions)
|
||||
const edgTypes = Object
|
||||
.values(edgewareDefinitions)
|
||||
.reduce((res, { default: { types } }): object => ({ ...res, ...types }), {});
|
||||
|
||||
export default {
|
||||
@ -19,5 +23,5 @@ export default {
|
||||
StakingLedger: 'StakingLedgerTo223',
|
||||
Votes: 'VotesTo230',
|
||||
ReferendumInfo: 'ReferendumInfoTo239',
|
||||
Weight: 'u32',
|
||||
Weight: 'u32'
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user