@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
package/dist/node/cjs/index.cjs
CHANGED
|
@@ -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
|
|
10640
|
+
return `gist:${id.toString()}`;
|
|
10641
10641
|
}
|
|
10642
10642
|
getLatestStateCacheKey(id) {
|
|
10643
|
-
return `latest
|
|
10643
|
+
return `latest-state:${id.toString()}`;
|
|
10644
10644
|
}
|
|
10645
10645
|
getStateCacheKey(id, state) {
|
|
10646
|
-
return
|
|
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
|
|