// Copyright 2019-2023 @polkadot/extension-ui authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { MetadataDef } from '@polkadot/extension-inject/types'; const metadataGets = new Map>(); export function getSavedMeta (genesisHash: string): Promise | undefined { return metadataGets.get(genesisHash); } export function setSavedMeta (genesisHash: string, def: Promise): Map> { return metadataGets.set(genesisHash, def); }