UNPKG

@dashevo/wallet-lib

Version:
14 lines (12 loc) 402 B
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;