@medialane/sdk 0.142.0 → 0.143.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.
@@ -646,7 +646,7 @@ var ApiClient = class {
646
646
  registerBusinessProvisioning(params) {
647
647
  return this.post(
648
648
  "/v1/business/provisioning",
649
- { chain: params.chain ?? "STARKNET", recipientScheme: params.recipientScheme, recipientValue: params.recipientValue }
649
+ { chain: params.chain ?? "STARKNET", email: params.email }
650
650
  );
651
651
  }
652
652
  getCollectionProfile(contractAddress) {
@@ -12465,7 +12465,7 @@ function ownerAliveCalldata(proof) {
12465
12465
  function buildChangeOwnersCall(accountAddress, removeOwnerPubkey, addOwnerPubkey, ownerAlive) {
12466
12466
  if (!ownerAlive) {
12467
12467
  throw new Error(
12468
- "Handing an account over removes the signing owner, so the account requires an owner-alive proof from the incoming owner. Sign ownerAliveTypedData with the new owner key and pass it here."
12468
+ "Replacing the signing owner requires an owner-alive proof from the new owner. Sign ownerAliveTypedData with the new owner key and pass it here."
12469
12469
  );
12470
12470
  }
12471
12471
  return changeOwners(
@@ -12777,12 +12777,14 @@ function isValidStarknetAddress(address) {
12777
12777
  return false;
12778
12778
  }
12779
12779
  }
12780
+ var CONTRACT_NOT_FOUND = 20;
12780
12781
  async function isDeployed(provider, address) {
12781
12782
  try {
12782
12783
  await provider.getClassHashAt(normalizeWalletAddress(address));
12783
12784
  return true;
12784
- } catch {
12785
- return false;
12785
+ } catch (err) {
12786
+ if (err?.code === CONTRACT_NOT_FOUND) return false;
12787
+ throw err;
12786
12788
  }
12787
12789
  }
12788
12790
 
@@ -13031,7 +13033,7 @@ async function waitUntilDeployed(provider, address, timeoutMs = 9e4, sleep2 = (m
13031
13033
  const deadline = Date.now() + timeoutMs;
13032
13034
  let wait = 1e3;
13033
13035
  for (; ; ) {
13034
- if (await isDeployed(provider, address)) return;
13036
+ if (await isDeployed(provider, address).catch(() => false)) return;
13035
13037
  if (Date.now() >= deadline) {
13036
13038
  throw new Error(
13037
13039
  "Your wallet was submitted but has not appeared on Starknet yet. Please try again in a moment."