UNPKG

@ledgerhq/coin-hedera

Version:
39 lines 965 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function getDeviceTransactionConfig({ transaction, status: { estimatedFees }, }) { const fields = []; if (transaction.useAllAmount) { fields.push({ type: "text", label: "Method", value: "Transfer All", }); } else { fields.push({ type: "text", label: "Method", value: "Transfer", }); } fields.push({ type: "amount", label: "Amount", }); if (!estimatedFees.isZero()) { fields.push({ type: "fees", label: "Fees", }); } if (transaction.memo) { fields.push({ type: "text", label: "Memo", value: transaction.memo, }); } return fields; } exports.default = getDeviceTransactionConfig; //# sourceMappingURL=deviceTransactionConfig.js.map