@cityofzion/bs-neo-legacy 0.7.1 → 0.7.2

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.
@@ -2,10 +2,10 @@
2
2
  "files": {
3
3
  "packages/bs-neo-legacy/jest.config.ts": "d944475db93cbe41a9339187fd94b9962e411c43",
4
4
  "packages/bs-neo-legacy/jest.setup.ts": "9a1976a32050616d4d2ee95b1aa21041bc4daca3",
5
- "packages/bs-neo-legacy/package.json": "c0b7d3d28174c6ce4652a442ad6b9485ee49f45c",
5
+ "packages/bs-neo-legacy/package.json": "483e2ada6eba13805941d12c50530b395b3f6ca9",
6
6
  "packages/bs-neo-legacy/src/BSNeoLegacy.ts": "ce59dc999823497ba0f79ec31afb81aec1d29351",
7
7
  "packages/bs-neo-legacy/src/CryptoCompareEDSNeoLegacy.ts": "7cbe7bf0e39f100edd329a9211006c3c1994a1c2",
8
- "packages/bs-neo-legacy/src/DoraBDSNeoLegacy.ts": "3ac617c879987ae8106cb212c36523909fffe79d",
8
+ "packages/bs-neo-legacy/src/DoraBDSNeoLegacy.ts": "d716619bf8b8331cd3025abc7fa1ccda6386a461",
9
9
  "packages/bs-neo-legacy/src/__tests__/BDSNeoLegacy.spec.ts": "04210ed3cc8b8afbc824417be87eac06d1f875fd",
10
10
  "packages/bs-neo-legacy/src/__tests__/BSNeoLegacy.spec.ts": "b2cff48a43db986fc02fdefbfd66a5cd4d70a5d9",
11
11
  "packages/bs-neo-legacy/src/__tests__/CryptoCompareExchange.spec.ts": "0aeb2e77cf1d3eabc7534d2b9cbc26e93240852d",
@@ -15,7 +15,7 @@
15
15
  "packages/bs-neo-legacy/src/index.ts": "247e7d072502350e685e11497aeedc89b7c921d5",
16
16
  "packages/bs-neo-legacy/tsconfig.build.json": "4dc23fb9c4c5e4d19a9bc3947a47c523f4bd967c",
17
17
  "packages/bs-neo-legacy/tsconfig.json": "77cf2b789e9c665b62792f9992cc81ae86296ef7",
18
- "common/config/rush/npm-shrinkwrap.json": "4994dce94cedd11a678400d92e08741ac7bc9d3f"
18
+ "common/config/rush/npm-shrinkwrap.json": "c7f58d681afa54f5c08d809a1ace9947b56fb633"
19
19
  },
20
20
  "arguments": "tsc --project tsconfig.build.json "
21
21
  }
@@ -138,7 +138,7 @@ class DoraBDSNeoLegacy {
138
138
  }
139
139
  catch (_a) { }
140
140
  return {
141
- amount: (Number(balance.balance) / Math.pow(10, token.decimals)).toFixed(token.decimals),
141
+ amount: Number(balance.balance).toFixed(token.decimals),
142
142
  token,
143
143
  };
144
144
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-neo-legacy",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Coz",
@@ -10,8 +10,8 @@
10
10
  "test": "jest --config jest.config.ts"
11
11
  },
12
12
  "dependencies": {
13
- "@cityofzion/blockchain-service": "0.7.1",
14
- "@cityofzion/bs-asteroid-sdk": "0.7.1",
13
+ "@cityofzion/blockchain-service": "0.7.2",
14
+ "@cityofzion/bs-asteroid-sdk": "0.7.2",
15
15
  "@cityofzion/dora-ts": "0.0.11",
16
16
  "@cityofzion/neon-js": "4.8.3"
17
17
  },
@@ -149,7 +149,7 @@ export class DoraBDSNeoLegacy implements BlockchainDataService, BDSClaimable {
149
149
  } catch {}
150
150
 
151
151
  return {
152
- amount: (Number(balance.balance) / 10 ** token.decimals).toFixed(token.decimals),
152
+ amount: Number(balance.balance).toFixed(token.decimals),
153
153
  token,
154
154
  }
155
155
  })