UNPKG

@ledgerhq/live-common

Version:
18 lines 624 B
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, }; }; export default { getWalletAPITransactionSignFlowInfos }; //# sourceMappingURL=walletApiAdapter.js.map