UNPKG

@renegade-fi/core

Version:
11 lines 360 B
import invariant from 'tiny-invariant'; export function getWalletId(config) { if (config.renegadeKeyType === 'external') { return config.walletId; } const { utils, state: { seed }, } = config; invariant(seed, 'seed is required'); const walletId = utils.wallet_id(seed); return walletId; } //# sourceMappingURL=getWalletId.js.map