Skip to content

Commit

Permalink
Merge pull request #441 from handshake-org/dust
Browse files Browse the repository at this point in the history
wallet: do check covenants for dust in createTX.
  • Loading branch information
boymanjor committed May 1, 2020
2 parents 361826f + 92f206a commit 89d3ab4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/wallet/wallet.js
Expand Up @@ -3285,8 +3285,7 @@ class Wallet extends EventEmitter {
const output = new Output(obj);
const addr = output.getAddress();

const {covenant} = output;
if (covenant.isDustworthy() && output.isDust())
if (output.isDust())
throw new Error('Output is dust.');

if (output.value > 0) {
Expand Down

0 comments on commit 89d3ab4

Please sign in to comment.