@helios-lang/contract-utils 0.2.76 → 0.2.78

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helios-lang/contract-utils",
3
- "version": "0.2.76",
3
+ "version": "0.2.78",
4
4
  "description": "Convenience and type-safety utilities for using Helios validators from within Typescript",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "@helios-lang/codec-utils": "^0.2.1",
37
37
  "@helios-lang/compiler-utils": "^0.2.1",
38
38
  "@helios-lang/crypto": "0.1.17",
39
- "@helios-lang/ledger": "^0.5.8",
39
+ "@helios-lang/ledger": "^0.5.10",
40
40
  "@helios-lang/type-utils": "^0.1.25",
41
41
  "@helios-lang/uplc": "^0.6.1"
42
42
  },
@@ -110,7 +110,7 @@ class ContractContextCache {
110
110
  * @param {CacheEntry} entry
111
111
  */
112
112
  set(key, entry) {
113
- if (key != "" && this.explicitCache) {
113
+ if (key != "" && this.explicitCache && !this.explicitCache.has(key)) {
114
114
  this.explicitCache.set(key, cacheEntryToJsonSafe(entry))
115
115
  } else if (this.enabled) {
116
116
  this.positionalCache.push(entry)