UNPKG

@keygate/wallet-management

Version:

Keygate Wallet Management solution.

15 lines (13 loc) 354 B
import type { ChainType } from '@keygate/sdk' import type { WalletConnector } from '../types/walletConnector' export const getConnectorId = ( connector?: WalletConnector, chainType?: ChainType ): string => { if (!connector) { return '' } return 'id' in connector && connector.id ? connector.id : `${connector.name}-${chainType}` }