* init with warning on wrong password * switching between requests * switching between requests * all passing * stray logs * cleanup * Signing Test with decodeding (#591) * decode error * as unknown * with decoding :) * lint * stray comment/logs Co-authored-by: Github Actions <action@github.com>
15 lines
557 B
TypeScript
15 lines
557 B
TypeScript
// Copyright 2019-2020 @polkadot/extension-ui authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { MetadataDef } from '@polkadot/extension-inject/types';
|
|
|
|
const metadataGets = new Map<string, Promise<MetadataDef | null>>();
|
|
|
|
export function getSavedMeta (genesisHash: string): Promise<MetadataDef | null> | undefined {
|
|
return metadataGets.get(genesisHash);
|
|
}
|
|
|
|
export function setSavedMeta (genesisHash: string, def: Promise<MetadataDef | null>): Map<string, Promise<MetadataDef | null>> {
|
|
return metadataGets.set(genesisHash, def);
|
|
}
|