Minor readability enhancements (#1313)
* Minor readability enhancements * Split unwieldly ApiBase * Fix import case * Some movements, init in root * Simplify overloaded functions * Some more reworks * Hoist non-class functions * Flatten * Split decorate and init * Split meta from chain * getNext cleanup
This commit is contained in:
@@ -269,7 +269,7 @@ export default class Rpc implements RpcInterface {
|
||||
}
|
||||
|
||||
private formatOutput (method: RpcMethod, params: Codec[], result?: any): Codec | (Codec | null | undefined)[] {
|
||||
const base = createTypeUnsafe(method.type as string, [result]);
|
||||
const base = createTypeUnsafe(method.type, [result]);
|
||||
|
||||
if (method.type === 'StorageData') {
|
||||
const key = params[0] as StorageKey;
|
||||
|
||||
Reference in New Issue
Block a user