emblem-vault-sdk 1.12.1 → 1.12.2

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 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.12.1';
38
+ const SDK_VERSION = '1.12.2';
39
39
  class EmblemVaultSDK {
40
40
  constructor(apiKey, baseUrl) {
41
41
  this.apiKey = apiKey;
package/dist/utils.js CHANGED
@@ -389,7 +389,7 @@ function generateTemplate(record) {
389
389
  if (hasAnyBalance && recordName != "Rinkeby") {
390
390
  let filteredBalances = _this.filterNativeBalances(ownership_balances, _this);
391
391
  // single
392
- if (filteredBalances.length == 1) {
392
+ if ((_this.vaultCollectionType == "protocol" && filteredBalances.length >= 1) || filteredBalances.length == 1) {
393
393
  allowedJump = _this.allowed(filteredBalances, _this);
394
394
  }
395
395
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emblem-vault-sdk",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "description": "Emblem Vault Software Development Kit",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/utils.ts CHANGED
@@ -351,7 +351,7 @@ export function generateTemplate(record: any) {
351
351
  if (hasAnyBalance && recordName != "Rinkeby") {
352
352
  let filteredBalances = _this.filterNativeBalances(ownership_balances, _this)
353
353
  // single
354
- if (filteredBalances.length == 1) {
354
+ if ((_this.vaultCollectionType == "protocol" && filteredBalances.length >=1) || filteredBalances.length == 1) {
355
355
  allowedJump = _this.allowed(filteredBalances, _this)
356
356
  } else {
357
357
  allowedJump = false