Use assertReturn to cleanup (#2804)
* Use assertReturn to cleanup * Remove Uint/Int duplication * Adjust * ws errors, part 2 * . * Adj. manual * adj * switchMap * Revert "switchMap" This reverts commit edfa4a2258f09042b61a27fd3812f0c53039fe4f. * Revert. * Revert. * protected constructor * Correct isHexJson flag * Remove isHexJson (always detect) * Adjust * Flags
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
"@polkadot/metadata": "^2.4.2-12",
|
||||
"@polkadot/rpc-provider": "^2.4.2-12",
|
||||
"@polkadot/types": "^2.4.2-12",
|
||||
"@polkadot/util": "^3.6.2-8",
|
||||
"@polkadot/util": "^3.6.2-10",
|
||||
"handlebars": "^4.7.6",
|
||||
"websocket": "^1.0.32",
|
||||
"yargs": "^16.1.0"
|
||||
|
||||
@@ -122,7 +122,7 @@ function tsSet (definitions: Record<string, ModuleTypes>, { name: setName, sub }
|
||||
setImports(definitions, imports, ['Set']);
|
||||
|
||||
const types = (sub as TypeDef[]).map(({ name }): string => {
|
||||
assert(!!name, 'Invalid TypeDef found, no name specified');
|
||||
assert(name, 'Invalid TypeDef found, no name specified');
|
||||
|
||||
return createGetter(definitions, `is${name}`, 'boolean', imports);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user