Derived elections member type (#1147)
* elections * headers * lint * lint * lint * lint * fixes * lint * voterSets * derived elections member type * lint
This commit is contained in:
@@ -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)
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
@@ -32,7 +32,7 @@ export interface DerivedContractFees {
|
||||
}
|
||||
|
||||
export interface DerivedElectionsInfo {
|
||||
members: [AccountId, BlockNumber][];
|
||||
members: Record<string, BlockNumber>;
|
||||
candidates: AccountId[];
|
||||
candidateCount: BN;
|
||||
desiredSeats: BN;
|
||||
|
||||
Reference in New Issue
Block a user