Cleanup id from index lookups (#2479)

This commit is contained in:
Jaco Greeff
2020-08-10 16:42:27 +02:00
committed by GitHub
parent 4d8910f3da
commit 73eaa9fe17
3 changed files with 13 additions and 13 deletions
@@ -30,7 +30,7 @@ function retrieve (api: ApiInterfaceRx, address: Address | AccountId | AccountIn
const accountIndex = api.registry.createType('AccountIndex', decoded);
return api.derive.accounts.indexToId(accountIndex).pipe(
return api.derive.accounts.indexToId(accountIndex.toString()).pipe(
map((accountId): AccountIdAndIndex => [accountId, accountIndex])
);
} catch (error) {