@ledgerhq/coin-multiversx
Version:
Ledger MultiversX Coin integration
14 lines • 432 B
JavaScript
/*
* Return an object, of the function, with the error and warning keys, as boolean values.
*/
export const handleTransactionStatus = (status) => {
const [[warning], [error]] = [
Object.keys(status.warnings || {}),
Object.keys(status.errors || {}),
];
return {
warning: status.warnings[warning],
error: status.errors[error],
};
};
//# sourceMappingURL=handleTransactionStatus.js.map