Allow construction of all types via U8a (#382)

This commit is contained in:
Jaco Greeff
2018-11-07 20:38:12 +01:00
committed by GitHub
parent 5f9a4c6958
commit cb9a48dc15
34 changed files with 131 additions and 63 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ export default class Rpc implements RpcInterface {
// outputType that we have specified. Fallback to Data on nothing
const type = (params[0] as StorageKey).outputType || 'Data';
return createType(type, base.raw);
return createType(type, base);
} else if (method.type === 'StorageChangeSet') {
// multiple return values (via state.storage subscription), decode the values
// one at a time, all based on the query types. Three values can be returned -