dedupKeyPrefix has been remove (handle optionally) (#6187)

This commit is contained in:
Jaco 2021-09-24 14:30:59 +03:00 committed by GitHub
parent c6ddff19b4
commit 55040fb921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ function expandKey (api: ApiPromise, key: QueryableStorageEntry<'promise'>): Key
const isIterable = checkIterable(api.registry, type);
return {
defaultValues: section === 'session' && type.isMap
defaultValues: section === 'session' && type.isMap && api.consts.session && api.consts.session.dedupKeyPrefix
? [{ isValid: true, value: api.consts.session.dedupKeyPrefix.toHex() }]
: null,
isIterable,