diff --git a/src/js/ripple/transaction.js b/src/js/ripple/transaction.js index 94b89f1f..7edf0eb7 100644 --- a/src/js/ripple/transaction.js +++ b/src/js/ripple/transaction.js @@ -289,13 +289,15 @@ Transaction.prototype.sign = function() { return this; } - var key = seed.get_key(this.tx_json.Account); - var sig = key.sign(hash, 0); - var hex = sjcl.codec.hex.fromBits(sig).toUpperCase(); + var key = seed.get_key(this.tx_json.Account); + var sig = key.sign(hash, 0); + var hex = sjcl.codec.hex.fromBits(sig).toUpperCase(); this.tx_json.TxnSignature = hex; this.previousSigningHash = hash; + this.emit('signed', this.hash()); + return this; };