Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
fix(Trade): set txHash from API
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jun 22, 2017
1 parent 9007f54 commit 47b97c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trade.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Trade extends Exchange.Trade {

this._delegate.deserializeExtraFields(obj, this);
this._confirmed = obj.confirmed;
this._txHash = obj.tx_hash;

this._is_buy = obj.is_buy;
} else {
Expand All @@ -44,6 +43,7 @@ class Trade extends Exchange.Trade {
console.info('Trade ' + this.id + ' from Unocoin API');
}

this._txHash = obj.transaction_hash;
this._id = this._id || Trade.idFromAPI(obj);

switch (obj.status) {
Expand Down

0 comments on commit 47b97c8

Please sign in to comment.