@carrot-protocol/http-client 0.2.70-carrot-boost-jit-dev-7ea56ad → 0.2.70-carrot-boost-jit-dev-073d4de

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 +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -316,8 +316,10 @@ class Client {
316
316
  });
317
317
  checkResponse(response);
318
318
  const responseBody = await response.json();
319
+ // intermediate parse
320
+ const body = JSON.parse(JSON.stringify(responseBody));
319
321
  // Convert the JSON instructions back to TransactionInstruction objects
320
- const instructions = responseBody.map((ix) => {
322
+ const instructions = body.instructions.map((ix) => {
321
323
  return new anchor_1.web3.TransactionInstruction({
322
324
  programId: new anchor_1.web3.PublicKey(ix.programId),
323
325
  keys: ix.keys.map((key) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/http-client",
3
- "version": "0.2.70-carrot-boost-jit-dev-7ea56ad",
3
+ "version": "0.2.70-carrot-boost-jit-dev-073d4de",
4
4
  "description": "interact with carrot api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",