Replace Data/U8a with un-aliassed Raw (#1656)

* Replace Data with un-aliassed U8a

* Export U8a

* Explicitly add U8a to the registry

* U8a -> Raw
This commit is contained in:
Jaco Greeff
2019-12-09 15:38:07 +01:00
committed by GitHub
parent 74dbff32df
commit 0d2896630d
36 changed files with 100 additions and 100 deletions
+4 -4
View File
@@ -359,8 +359,8 @@ export default class Rpc implements RpcInterface {
private formatStorageData (key: StorageKey, value: string | null): Codec {
// single return value (via state.getStorage), decode the value based on the
// outputType that we have specified. Fallback to Data on nothing
const type = key.outputType || 'Data';
// outputType that we have specified. Fallback to Raw on nothing
const type = key.outputType || 'Raw';
const meta = key.meta || EMPTY_META;
const isEmpty = isNull(value);
@@ -386,8 +386,8 @@ export default class Rpc implements RpcInterface {
}
private formatStorageSet (key: StorageKey, changes: [string, string | null][], witCache: boolean): Codec {
// Fallback to Data (i.e. just the encoding) if we don't have a specific type
const type = key.outputType || 'Data';
// Fallback to Raw (i.e. just the encoding) if we don't have a specific type
const type = key.outputType || 'Raw';
const hexKey = key.toHex();
const meta = key.meta || EMPTY_META;