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:
Jaco Greeff
2019-08-16 00:42:54 +02:00
committed by GitHub
parent 149403ec72
commit fbac330e10
15 changed files with 940 additions and 925 deletions
+1 -1
View File
@@ -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;