@0xpolygonid/js-sdk 1.38.1 → 1.38.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.
@@ -10587,7 +10587,7 @@ var EthStateStorage = class {
10587
10587
  }
10588
10588
  /** {@inheritdoc IStateStorage.getGISTRootInfo} */
10589
10589
  async getGISTRootInfo(root, id) {
10590
- const cacheKey = this.getRootCacheKey(root);
10590
+ const cacheKey = this.getRootCacheKey(id, root);
10591
10591
  if (!this._disableCache) {
10592
10592
  const cachedResult = await this._rootResolveCache?.get(cacheKey);
10593
10593
  if (cachedResult) {
@@ -10637,16 +10637,16 @@ var EthStateStorage = class {
10637
10637
  return network;
10638
10638
  }
10639
10639
  getGistProofCacheKey(id) {
10640
- return `gist-${id.toString()}`;
10640
+ return `gist:${id.toString()}`;
10641
10641
  }
10642
10642
  getLatestStateCacheKey(id) {
10643
- return `latest-${id.toString()}`;
10643
+ return `latest-state:${id.toString()}`;
10644
10644
  }
10645
10645
  getStateCacheKey(id, state) {
10646
- return `${id.toString()}-${state.toString()}`;
10646
+ return `state:${id.toString()}-${state.toString()}`;
10647
10647
  }
10648
- getRootCacheKey(root) {
10649
- return root.toString();
10648
+ getRootCacheKey(id, root) {
10649
+ return `root:${id.toString()}-${root.toString()}`;
10650
10650
  }
10651
10651
  };
10652
10652