@ledgerhq/coin-hedera
Version:
Ledger Hedera Coin integration
37 lines • 885 B
JavaScript
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;
}
export default getDeviceTransactionConfig;
//# sourceMappingURL=deviceTransactionConfig.js.map