Derived elections member type (#1147)

* elections

* headers

* lint

* lint

* lint

* lint

* fixes

* lint

* voterSets

* derived elections member type

* lint
This commit is contained in:
kwingram25
2019-07-19 23:11:39 +02:00
committed by Jaco Greeff
parent 1d6e4ad638
commit 2ff632b534
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ export function voters (api: ApiInterfaceRx): () => Observable<Vector<AccountId>
new Vector(
AccountId,
Object.keys(voterSets).map(
address => new AccountId(address)
(address: string): AccountId => new AccountId(address)
)
)
),
+1 -1
View File
@@ -32,7 +32,7 @@ export interface DerivedContractFees {
}
export interface DerivedElectionsInfo {
members: [AccountId, BlockNumber][];
members: Record<string, BlockNumber>;
candidates: AccountId[];
candidateCount: BN;
desiredSeats: BN;