@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
10 lines • 398 B
JavaScript
import perFamily from "../generated/deviceTransactionConfig";
import { getMainAccount } from "../account";
export async function getDeviceTransactionConfig(arg) {
const mainAccount = getMainAccount(arg.account, arg.parentAccount);
const f = perFamily[mainAccount.currency.family];
if (!f)
return [];
return await f(arg);
}
//# sourceMappingURL=deviceTransactionConfig.js.map