Ensure indexes are AccountIndex type (#4059)

This commit is contained in:
Jaco
2021-10-14 09:44:49 +03:00
committed by GitHub
parent 295c9219c2
commit e7a78ae908
+1 -1
View File
@@ -16,7 +16,7 @@ function queryAccounts (api: ApiInterfaceRx): Observable<AccountIndexes> {
map((entries): AccountIndexes =>
entries.reduce((indexes: AccountIndexes, [key, idOpt]): AccountIndexes => {
if (idOpt.isSome) {
indexes[idOpt.unwrap()[0].toString()] = key.args[0];
indexes[idOpt.unwrap()[0].toString()] = api.registry.createType('AccountIndex', key.args[0]);
}
return indexes;