@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.
@@ -10044,7 +10044,7 @@ var EthStateStorage = class {
10044
10044
  }
10045
10045
  /** {@inheritdoc IStateStorage.getGISTRootInfo} */
10046
10046
  async getGISTRootInfo(root, id) {
10047
- const cacheKey = this.getRootCacheKey(root);
10047
+ const cacheKey = this.getRootCacheKey(id, root);
10048
10048
  if (!this._disableCache) {
10049
10049
  const cachedResult = await this._rootResolveCache?.get(cacheKey);
10050
10050
  if (cachedResult) {
@@ -10094,16 +10094,16 @@ var EthStateStorage = class {
10094
10094
  return network;
10095
10095
  }
10096
10096
  getGistProofCacheKey(id) {
10097
- return `gist-${id.toString()}`;
10097
+ return `gist:${id.toString()}`;
10098
10098
  }
10099
10099
  getLatestStateCacheKey(id) {
10100
- return `latest-${id.toString()}`;
10100
+ return `latest-state:${id.toString()}`;
10101
10101
  }
10102
10102
  getStateCacheKey(id, state) {
10103
- return `${id.toString()}-${state.toString()}`;
10103
+ return `state:${id.toString()}-${state.toString()}`;
10104
10104
  }
10105
- getRootCacheKey(root) {
10106
- return root.toString();
10105
+ getRootCacheKey(id, root) {
10106
+ return `root:${id.toString()}-${root.toString()}`;
10107
10107
  }
10108
10108
  };
10109
10109