emblem-vault-sdk 1.9.17 → 1.9.18
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 +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/src/utils.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
35
35
|
const bignumber_1 = require("@ethersproject/bignumber");
|
|
36
36
|
const utils_1 = require("./utils");
|
|
37
37
|
const derive_1 = require("./derive");
|
|
38
|
-
const SDK_VERSION = '1.9.
|
|
38
|
+
const SDK_VERSION = '1.9.18';
|
|
39
39
|
class EmblemVaultSDK {
|
|
40
40
|
constructor(apiKey, baseUrl) {
|
|
41
41
|
this.apiKey = apiKey;
|
package/dist/utils.js
CHANGED
|
@@ -320,7 +320,7 @@ function generateTemplate(record) {
|
|
|
320
320
|
}
|
|
321
321
|
else if (recordName == "dot_id" || recordName == "dot_bit") {
|
|
322
322
|
data = _this.filterNativeBalances({ balances: data }, _this);
|
|
323
|
-
allowed =
|
|
323
|
+
allowed = data[0].project == recordName;
|
|
324
324
|
}
|
|
325
325
|
else if (PROJECTS_DATA.includes(recordName)) { // XCP
|
|
326
326
|
allowed = !!exports.NFT_DATA[assetName] &&
|
package/package.json
CHANGED
package/src/utils.ts
CHANGED
|
@@ -297,7 +297,7 @@ export function generateTemplate(record: any) {
|
|
|
297
297
|
allowed = firstAsset.coin == "ordinalsbtc" && firstAsset.balance == 1 && firstAsset.project == "DeGods"
|
|
298
298
|
} else if (recordName == "dot_id" || recordName == "dot_bit") {
|
|
299
299
|
data = _this.filterNativeBalances({balances: data}, _this)
|
|
300
|
-
allowed =
|
|
300
|
+
allowed = data[0].project == recordName
|
|
301
301
|
} else if (PROJECTS_DATA.includes(recordName)) { // XCP
|
|
302
302
|
allowed = !!NFT_DATA[assetName] &&
|
|
303
303
|
NFT_DATA[assetName]["projectName"].toLowerCase() == recordName.toLowerCase() &&
|