Remove onCall, use decorateMethod (#987)
* update signature of doublemap storage function * add test cases * update doublemap implementation * update implementation * remove duplicate test case * update test cases * Add hkt * Fix derive types * Make derive work * Fix some bugs * Fix some bugs * More stuff * Make some more stuff work * Fix types in derive * Fix all tests in derive * Change back ApiType * Remove vscode * Fix Submittables * Fix some errors * Fix some bugs * Change some stuff * Fix merge conflict * Fix types * Add console.log * Add console.log * Re-add decorateMethod * Fix tests * Skip e2e * Small fixes * Fix signAndSend * Fix typings in test * Fix lint * Add comments * One line * Remove useless * URI->ApiType * Indentation
This commit is contained in:
@@ -30,7 +30,7 @@ export function indexToId (api: ApiInterface$Rx) {
|
||||
? _accountIndex
|
||||
: new AccountIndex(_accountIndex);
|
||||
|
||||
return (querySection.enumSet(accountIndex.div(ENUMSET_SIZE)) as Observable<Vector<AccountId>>)
|
||||
return (querySection.enumSet<Vector<AccountId>>(accountIndex.div(ENUMSET_SIZE)))
|
||||
.pipe(
|
||||
startWith([]),
|
||||
map((accounts) =>
|
||||
|
||||
@@ -31,7 +31,7 @@ const enumsetSize = ENUMSET_SIZE.toNumber();
|
||||
*/
|
||||
export function indexes (api: ApiInterface$Rx) {
|
||||
return (): Observable<AccountIndexes> => {
|
||||
return (api.query.indices.nextEnumSet() as Observable<AccountIndex>)
|
||||
return (api.query.indices.nextEnumSet<AccountIndex>())
|
||||
.pipe(
|
||||
// use the nextEnumSet (which is a counter of the number of sets) to construct
|
||||
// a range of values to query [0, 1, 2, ...]. Retrieve the full enum set for the
|
||||
|
||||
Reference in New Issue
Block a user