Fix storage metadata (#4467)

This commit is contained in:
Jaco
2022-01-19 07:52:06 +02:00
committed by GitHub
parent 09ec89ae62
commit 3396ed6010
2 changed files with 3 additions and 2 deletions
@@ -7,7 +7,7 @@ import type { StorageEntry } from '../../../primitive/types';
import type { Registry } from '../../../types';
import { Raw } from '@polkadot/types-codec';
import { assert, compactAddLength, compactStripLength, isUndefined, objectSpread, stringCamelCase, stringLowerFirst, u8aConcat, u8aToU8a } from '@polkadot/util';
import { assert, compactAddLength, compactStripLength, isUndefined, objectSpread, stringCamelCase, u8aConcat, u8aToU8a } from '@polkadot/util';
import { xxhashAsU8a } from '@polkadot/util-crypto';
import { StorageKey } from '../../../primitive';
@@ -114,7 +114,7 @@ function createWithMeta (registry: Registry, itemFn: CreateItemFn, options: Crea
const storageFn = createWStorageFn(registry, itemFn, options) as StorageEntry;
storageFn.meta = meta;
storageFn.method = stringLowerFirst(method);
storageFn.method = stringCamelCase(method);
storageFn.prefix = prefix;
storageFn.section = section;