@dashevo/wallet-lib
Version:
Light wallet library for Dash
14 lines (12 loc) • 476 B
JavaScript
const WalletLibError = require('./WalletLibError');
class CoinSelectionUnsufficientUTXOS extends WalletLibError {
constructor(info) {
const getErrorMessageOf = (_info) => {
const { utxosValue, outputValue } = _info;
const diff = utxosValue - outputValue;
return `Unsufficient utxos (${utxosValue}) to cover the output : ${outputValue}. Diff : ${diff}`;
};
super(getErrorMessageOf(info));
}
}
module.exports = CoinSelectionUnsufficientUTXOS;