UNPKG

@ledgerhq/coin-canton

Version:
21 lines 671 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // This method adds additional fields that need to be reviewed when signing a transaction on the device. 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; } exports.default = getDeviceTransactionConfig; //# sourceMappingURL=deviceTransactionConfig.js.map