@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
20 lines • 704 B
JavaScript
;
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