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/src/utils.ts CHANGED
@@ -223,9 +223,9 @@ export function generateTemplate(record: any) {
223
223
  } else if (recordName == "Embels"){
224
224
  allowed = true
225
225
  } else if (_this.vaultCollectionType && _this.vaultCollectionType == "protocol") {
226
- allowed = data && data[0].coin ==_this.collectionChain
226
+ allowed = data && data[0].coin.toLowerCase() ==_this.collectionChain.toLowerCase()
227
227
  } else if (_this.vaultCollectionType && _this.vaultCollectionType == "collection" ) {
228
- allowed = data && data[0].coin == _this.collectionChain && data[0].project == _this.name
228
+ allowed = data && data[0].coin.toLowerCase() == _this.collectionChain.toLowerCase() && data[0].project == _this.name
229
229
  } else { // XCP
230
230
  allowed = data[0].project == _this.name && data[0].balance == 1;
231
231
  }