@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.
- package/dist/browser/esm/index.js +6 -6
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.global.js +1 -1
- package/dist/browser/umd/index.global.js.map +1 -1
- package/dist/node/cjs/index.cjs +6 -6
- package/dist/node/cjs/index.cjs.map +1 -1
- package/dist/node/esm/index.js +6 -6
- package/dist/node/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/storage/blockchain/state.ts +6 -6
|
@@ -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
|
|
10097
|
+
return `gist:${id.toString()}`;
|
|
10098
10098
|
}
|
|
10099
10099
|
getLatestStateCacheKey(id) {
|
|
10100
|
-
return `latest
|
|
10100
|
+
return `latest-state:${id.toString()}`;
|
|
10101
10101
|
}
|
|
10102
10102
|
getStateCacheKey(id, state) {
|
|
10103
|
-
return
|
|
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
|
|