@carrot-protocol/http-client 0.2.13-api-cache-dev-7754fa2 → 0.2.13

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +4 -2
package/dist/index.js CHANGED
@@ -53,10 +53,10 @@ class Client {
53
53
  checkResponse(response);
54
54
  const rawBody = await response.json();
55
55
  let body = JSON.parse(JSON.stringify(rawBody));
56
- body.address = new anchor.web3.PublicKey(body.address);
56
+ body.address = vault;
57
57
  body.authority = new anchor.web3.PublicKey(body.authority);
58
58
  body.shares = new anchor.web3.PublicKey(body.shares);
59
- body.sharesSupply = new anchor.BN(body.sharesSupply);
59
+ body.sharesSupply = new anchor.BN(body.sharesSupply, "hex");
60
60
  body.assets = body.assets.map((asset) => ({
61
61
  ...asset,
62
62
  assetId: Number(asset.assetId),
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@carrot-protocol/http-client",
3
- "version": "0.2.13-api-cache-dev-7754fa2",
3
+ "version": "0.2.13",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
- "build": "rm -rf dist node_modules && npm i && tsc && npm pack",
8
+ "clean": "rm -rf dist node_modules",
9
+ "build": "npm run clean && npm i && tsc && npm pack",
10
+ "build:dirty": "npm run clean && npm i && tsc && npm pack",
9
11
  "fmt:check": "prettier --check src/",
10
12
  "fmt": "prettier --write src/"
11
13
  },