Allow keyPrefix to accept an additional argument for double maps (#2230)
* Allow keyPrefix to accept an additional argument for double maps * Make key creators accept an optional parameter for key construction * Remove .only from a test case Co-authored-by: Xiliang Chen <xlchen1291@gmail.com> * Cache prefix key when no arguments are supplied * Address review comments * Update packages/metadata/src/Decorated/storage/fromMetadata/createFunction.spec.ts Co-authored-by: Xiliang Chen <xlchen1291@gmail.com> Co-authored-by: Jaco Greeff <jacogr@gmail.com>
This commit is contained in:
co-authored by
Xiliang Chen
Jaco Greeff
parent
674324e7f9
commit
455f5ad834
@@ -12,8 +12,8 @@ import Bytes from './Bytes';
|
||||
|
||||
export interface StorageEntry {
|
||||
(arg?: any): Uint8Array;
|
||||
iterKey?: Uint8Array & Codec;
|
||||
keyPrefix: Uint8Array;
|
||||
iterKey?: (arg?: any) => Uint8Array & Codec;
|
||||
keyPrefix: (arg?: any) => Uint8Array;
|
||||
meta: StorageEntryMetadataLatest;
|
||||
method: string;
|
||||
prefix: string;
|
||||
|
||||
Reference in New Issue
Block a user