@dashevo/wallet-lib
Version:
Light wallet library for Dash
14 lines (12 loc) • 402 B
JavaScript
const WalletLibError = require('./WalletLibError');
const CoinSelectionUnsufficientUTXOS = require('./CoinSelectionUnsufficientUTXOS');
class CreateTransactionError extends WalletLibError {
constructor(e) {
if (e instanceof CoinSelectionUnsufficientUTXOS) {
super('Unsufficient funds to cover the output');
} else {
super(e);
}
}
}
module.exports = CreateTransactionError;