fromJSON result on API (#202)

This commit is contained in:
Jaco Greeff
2018-10-04 15:17:01 +02:00
committed by GitHub
parent 905577f6f8
commit 60d874cc55
+1 -1
View File
@@ -140,7 +140,7 @@ export default class Api implements ApiInterface {
}
private formatOutput (method: Method, params: Array<Base>, result?: any): Base {
const base = createType(method.type as string, result);
const base = createType(method.type as string).fromJSON(result);
if (method.type === 'StorageData') {
const type = (params[0] as StorageKey).outputType;