@medialane/sdk 0.93.0 → 0.94.0

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.
@@ -10339,10 +10339,13 @@ function u256(parts, offset = 0) {
10339
10339
  }
10340
10340
  async function getCreatorCoinGuarantees(coinAddress, provider) {
10341
10341
  const call = (entrypoint) => provider.callContract({ contractAddress: coinAddress, entrypoint, calldata: [] });
10342
- const [launchedRes, supplyRes, allocRes, blockRes, liquidityRes] = await Promise.all([
10343
- call("is_launched"),
10342
+ const [launchedRes, allocRes] = await Promise.all([
10343
+ call("is_launched").catch(() => null),
10344
+ call("get_team_allocation").catch(() => null)
10345
+ ]);
10346
+ if (!launchedRes || !allocRes) return null;
10347
+ const [supplyRes, blockRes, liquidityRes] = await Promise.all([
10344
10348
  call("total_supply"),
10345
- call("get_team_allocation"),
10346
10349
  call("launched_at_block_number").catch(() => null),
10347
10350
  call("liquidity_type").catch(() => null)
10348
10351
  ]);