UNPKG

@ledgerhq/coin-canton

Version:
19 lines 596 B
// This method adds additional fields that need to be reviewed when signing a transaction on the device. async function getDeviceTransactionConfig({ transaction: _, status: { amount, estimatedFees }, }) { const fields = []; if (!amount.isZero()) { fields.push({ type: "amount", label: "Amount", }); } if (!estimatedFees.isZero()) { fields.push({ type: "fees", label: "Fees", }); } return fields; } export default getDeviceTransactionConfig; //# sourceMappingURL=deviceTransactionConfig.js.map