@carrot-protocol/http-client 0.2.12-hva-dev-8a6747f → 0.2.12
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 +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -128,9 +128,12 @@ class Client {
|
|
|
128
128
|
headers: this.headers,
|
|
129
129
|
});
|
|
130
130
|
checkResponse(response);
|
|
131
|
-
const body =
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
const body = await response.json();
|
|
132
|
+
const historicalVaultApyResponse = {
|
|
133
|
+
vault,
|
|
134
|
+
data: body,
|
|
135
|
+
};
|
|
136
|
+
return historicalVaultApyResponse;
|
|
134
137
|
}
|
|
135
138
|
async issue(vault, assetMint, amount) {
|
|
136
139
|
const url = new URL(`${this.baseUrl}/issue`);
|