@chipi-stack/backend 14.11.0 → 14.12.1

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.
@@ -447,8 +447,10 @@ var executePaymasterTransaction = async ({
447
447
  let walletType = wallet.walletType ?? "READY";
448
448
  if (!wallet.walletType) {
449
449
  try {
450
- const resolveProvider = new starknet.RpcProvider({ nodeUrl: shared.WALLET_RPC_ENDPOINTS.CHIPI });
451
- const onChainClassHash = await resolveProvider.getClassHashAt(wallet.publicKey, "latest");
450
+ const onChainClassHash = await shared.withRpcFallback(
451
+ (provider2) => provider2.getClassHashAt(wallet.publicKey, "latest"),
452
+ { fallbackUrl: shared.WALLET_RPC_ENDPOINTS.CHIPI }
453
+ );
452
454
  walletType = shared.getWalletTypeFromClassHash(onChainClassHash) ?? "READY";
453
455
  } catch {
454
456
  }