UNPKG

@ledgerhq/live-common

Version:
20 lines 704 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const CAN_EDIT_FEES = false; const HAS_FEES_PROVIDED = false; const getWalletAPITransactionSignFlowInfos = ({ walletApiTransaction, account }) => { const liveTx = { ...walletApiTransaction, model: { ...walletApiTransaction.model, commandDescriptor: undefined }, }; if (!liveTx.subAccountId && account.type === "TokenAccount") { liveTx.subAccountId = account.id; } return { canEditFees: CAN_EDIT_FEES, liveTx, hasFeesProvided: HAS_FEES_PROVIDED, }; }; exports.default = { getWalletAPITransactionSignFlowInfos }; //# sourceMappingURL=walletApiAdapter.js.map