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
+1
View File
@@ -7,6 +7,7 @@ Changes:
- Adjust `Registry` to augment based on used packages
- Add support for ink! metadata V3 with payable constructors
- Cleanup ink! metadata parsing, allowing for easier extension
- Fix storage metadata, aligning method with decorated name
- Adjust typegen, only using exportInterface
- Added Kusama/Polkadot 9151 upgrade block (known types)
- Update to latest Substrate, Kusama & Polkadot static metadata
@@ -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;