@medialane/sdk 0.23.0 → 0.25.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.
package/dist/index.cjs CHANGED
@@ -18,7 +18,7 @@ var IPCOLLECTION_CLASS_HASH_MAINNET = "0x287ccdff8b6655a2248cfe170d82eae3a35303c
18
18
  var COLLECTION_721_START_BLOCK_MAINNET = 10046166;
19
19
  var DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
20
20
  var POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
21
- var NFTCOMMENTS_CONTRACT_MAINNET = "0x024f97eb5abe659fb650bf162b5fc16501f8f3863a7369901ce6099462e62799";
21
+ var NFTCOMMENTS_CONTRACT_MAINNET = "0x02cdac70c94447189af0389dfea63f4d5e4154ea8a563de288a5ab1c39e37843";
22
22
  var SUPPORTED_TOKENS = [
23
23
  {
24
24
  // Circle-native USDC on Starknet (canonical)
@@ -5812,16 +5812,18 @@ var ApiClient = class {
5812
5812
  }
5813
5813
  async upsertMyWallet(clerkToken, options = {}) {
5814
5814
  const url = `${this.baseUrl.replace(/\/$/, "")}/v1/users/me`;
5815
+ const body = {
5816
+ walletType: options.walletType ?? "UNKNOWN",
5817
+ appSource: options.appSource ?? "MEDIALANE_SDK"
5818
+ };
5819
+ if (options.chain) body.chain = options.chain;
5815
5820
  const res = await fetch(url, {
5816
5821
  method: "POST",
5817
5822
  headers: {
5818
5823
  "Content-Type": "application/json",
5819
5824
  "Authorization": `Bearer ${clerkToken}`
5820
5825
  },
5821
- body: JSON.stringify({
5822
- walletType: options.walletType ?? "UNKNOWN",
5823
- appSource: options.appSource ?? "MEDIALANE_SDK"
5824
- })
5826
+ body: JSON.stringify(body)
5825
5827
  });
5826
5828
  return this.checkResponse(res);
5827
5829
  }