emblem-vault-sdk 1.7.2 → 1.7.4
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/bundle.js +32335 -7397
- package/dist/curated/metadata.json +32332 -7394
- package/dist/index.js +1 -1
- package/dist/utils.js +2 -2
- package/docs/bundle.js +32335 -7397
- package/package.json +1 -1
- package/src/curated/metadata.json +32332 -7394
- package/src/utils.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
const bignumber_1 = require("@ethersproject/bignumber");
|
|
36
36
|
const utils_1 = require("./utils");
|
|
37
|
-
const SDK_VERSION = '1.7.
|
|
37
|
+
const SDK_VERSION = '1.7.4';
|
|
38
38
|
class EmblemVaultSDK {
|
|
39
39
|
constructor(apiKey, baseUrl) {
|
|
40
40
|
this.apiKey = apiKey;
|
package/dist/utils.js
CHANGED
|
@@ -251,10 +251,10 @@ function generateTemplate(record) {
|
|
|
251
251
|
allowed = true;
|
|
252
252
|
}
|
|
253
253
|
else if (_this.vaultCollectionType && _this.vaultCollectionType == "protocol") {
|
|
254
|
-
allowed = data && data[0].coin == _this.collectionChain;
|
|
254
|
+
allowed = data && data[0].coin.toLowerCase() == _this.collectionChain.toLowerCase();
|
|
255
255
|
}
|
|
256
256
|
else if (_this.vaultCollectionType && _this.vaultCollectionType == "collection") {
|
|
257
|
-
allowed = data && data[0].coin == _this.collectionChain && data[0].project == _this.name;
|
|
257
|
+
allowed = data && data[0].coin.toLowerCase() == _this.collectionChain.toLowerCase() && data[0].project == _this.name;
|
|
258
258
|
}
|
|
259
259
|
else { // XCP
|
|
260
260
|
allowed = data[0].project == _this.name && data[0].balance == 1;
|