polkamarkets-js 3.1.6 → 3.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polkamarkets-js",
3
- "version": "3.1.6",
3
+ "version": "3.1.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -494,12 +494,12 @@ class PredictionMarketV2Contract extends IContract {
494
494
  * @return {Integer} decimals
495
495
  */
496
496
  async getMarketDecimals({marketId}) {
497
- if (this.defaultDecimals) {
498
- return this.defaultDecimals;
499
- }
500
497
  if (this.marketDecimals && this.marketDecimals[marketId]) {
501
498
  return this.marketDecimals[marketId];
502
499
  }
500
+ if (this.defaultDecimals) {
501
+ return this.defaultDecimals;
502
+ }
503
503
 
504
504
  const marketAltData = await this.params.contract.getContract().methods.getMarketAltData(marketId).call();
505
505
  const contractAddress = marketAltData[3];