Skip to content

Commit

Permalink
Added temporary fix for the API format
Browse files Browse the repository at this point in the history
  • Loading branch information
xenohunter committed Jun 7, 2017
1 parent fcf5412 commit 957c41d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions distr/wavesplatform-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2154,6 +2154,11 @@ Decimal.config({toExpNeg: -(Currency.WAVES.precision + 1)});
.all('asset-id-by-unique-name')
.get(assetName)
.then(function (response) {
// FIXME : temporary fix for the API format
if (typeof response !== 'object') {
response = {assetId: response};
}

return response.assetId;
});
}
Expand Down
Loading

0 comments on commit 957c41d

Please sign in to comment.