diff --git a/package.json b/package.json index 551a89c..11b2424 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "btsdex", - "version": "0.7.2", + "version": "0.7.3", "description": "Package for work with BitShares DEX", "main": "lib", "bin": { diff --git a/src/transaction/index.js b/src/transaction/index.js index 58bf075..4665693 100644 --- a/src/transaction/index.js +++ b/src/transaction/index.js @@ -28,11 +28,15 @@ class Transaction { ); }; - broadcast = async keys => { + sign = async keys => { await this.tx.set_required_fees(); (keys ? keys : this.keys).forEach(key => this.tx.add_signer(key, key.toPublicKey().toPublicKeyString()) ); + }; + + broadcast = async keys => { + await this.sign(keys); return this.tx.broadcast(); };