@talismn/sapi 0.0.7 → 0.0.8

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.
@@ -567,7 +567,9 @@ const fetchBestMetadata = async (rpcSend, allowLegacyFallback) => {
567
567
  // ex: crust standalone
568
568
  message?.includes("Module doesn't have export Metadata_metadata_versions") ||
569
569
  // ex: 3DPass
570
- message?.includes("Exported method Metadata_metadata_versions is not found") // ex: sora-polkadot & sora-standalone
570
+ message?.includes("Exported method Metadata_metadata_versions is not found") ||
571
+ // ex: sora-polkadot & sora-standalone
572
+ message?.includes("Execution, MethodNotFound, Metadata_metadata_versions") // ex: stafi
571
573
  ) {
572
574
  return await rpcSend("state_getMetadata", [], true);
573
575
  }
@@ -567,7 +567,9 @@ const fetchBestMetadata = async (rpcSend, allowLegacyFallback) => {
567
567
  // ex: crust standalone
568
568
  message?.includes("Module doesn't have export Metadata_metadata_versions") ||
569
569
  // ex: 3DPass
570
- message?.includes("Exported method Metadata_metadata_versions is not found") // ex: sora-polkadot & sora-standalone
570
+ message?.includes("Exported method Metadata_metadata_versions is not found") ||
571
+ // ex: sora-polkadot & sora-standalone
572
+ message?.includes("Execution, MethodNotFound, Metadata_metadata_versions") // ex: stafi
571
573
  ) {
572
574
  return await rpcSend("state_getMetadata", [], true);
573
575
  }
@@ -561,7 +561,9 @@ const fetchBestMetadata = async (rpcSend, allowLegacyFallback) => {
561
561
  // ex: crust standalone
562
562
  message?.includes("Module doesn't have export Metadata_metadata_versions") ||
563
563
  // ex: 3DPass
564
- message?.includes("Exported method Metadata_metadata_versions is not found") // ex: sora-polkadot & sora-standalone
564
+ message?.includes("Exported method Metadata_metadata_versions is not found") ||
565
+ // ex: sora-polkadot & sora-standalone
566
+ message?.includes("Execution, MethodNotFound, Metadata_metadata_versions") // ex: stafi
565
567
  ) {
566
568
  return await rpcSend("state_getMetadata", [], true);
567
569
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/sapi",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "GPL-3.0-or-later",