@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.
- package/dist/index.js +3 -1
- 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 =
|
|
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