thirdweb 5.112.1-nightly-144bb33ffdf4d07b5d7370328ee640cd68d877c8-20251114000335 → 5.112.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.
@@ -1 +1 @@
1
- {"version":3,"file":"resolveImplementation.d.ts","sourceRoot":"","sources":["../../../../src/utils/bytecode/resolveImplementation.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAKhF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAQ9C;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAEzC,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,GAC9B,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE,CAAC,CA4D7C"}
1
+ {"version":3,"file":"resolveImplementation.d.ts","sourceRoot":"","sources":["../../../../src/utils/bytecode/resolveImplementation.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAKhF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAQ9C;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAEzC,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,GAC9B,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE,CAAC,CA6D7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"isMobile.d.ts","sourceRoot":"","sources":["../../../../src/utils/web/isMobile.ts"],"names":[],"mappings":"AAsDA;;GAEG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CAgBlC"}
1
+ {"version":3,"file":"isMobile.d.ts","sourceRoot":"","sources":["../../../../src/utils/web/isMobile.ts"],"names":[],"mappings":"AAsDA;;GAEG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CAwBlC"}
@@ -1,2 +1,2 @@
1
- export declare const version = "5.112.1-nightly-144bb33ffdf4d07b5d7370328ee640cd68d877c8-20251114000335";
1
+ export declare const version = "5.112.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,4EAA4E,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-wallet.d.ts","sourceRoot":"","sources":["../../../src/wallets/create-wallet.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAK9D,OAAO,KAAK,EACV,gBAAgB,EAGhB,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAI3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwGG;AACH,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,SAAS,QAAQ,EACpD,GAAG,IAAI,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAC5B,MAAM,CAAC,EAAE,CAAC,CAsWZ;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,4BAE5B"}
1
+ {"version":3,"file":"create-wallet.d.ts","sourceRoot":"","sources":["../../../src/wallets/create-wallet.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAW,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAK9D,OAAO,KAAK,EACV,gBAAgB,EAGhB,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAI3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwGG;AACH,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,SAAS,QAAQ,EACpD,GAAG,IAAI,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAC5B,MAAM,CAAC,EAAE,CAAC,CAuWZ;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,4BAE5B"}
package/package.json CHANGED
@@ -399,7 +399,7 @@
399
399
  }
400
400
  },
401
401
  "typings": "./dist/types/exports/thirdweb.d.ts",
402
- "version": "5.112.1-nightly-144bb33ffdf4d07b5d7370328ee640cd68d877c8-20251114000335",
402
+ "version": "5.112.1",
403
403
  "scripts": {
404
404
  "bench": "vitest -c ./test/vitest.config.ts bench",
405
405
  "bench:compare": "bun run ./benchmarks/run.ts",
@@ -47,8 +47,6 @@ export async function resolveImplementation(
47
47
  }
48
48
 
49
49
  // check other proxy types
50
- let implementationAddress: string | undefined;
51
-
52
50
  if (beacon && beacon !== AddressZero) {
53
51
  // In case of a BeaconProxy, it is setup as BeaconProxy --> Beacon --> Implementation
54
52
  // Hence we replace the proxy address with Beacon address, and continue further resolving below
@@ -56,33 +54,36 @@ export async function resolveImplementation(
56
54
  ...contract,
57
55
  address: beacon,
58
56
  });
59
-
60
- implementationAddress = await getImplementationFromContractCall(contract);
61
- } else {
62
- implementationAddress = await getImplementationFromStorageSlot(contract);
63
57
  }
64
58
 
65
- if (
66
- implementationAddress &&
67
- isAddress(implementationAddress) &&
68
- implementationAddress !== AddressZero
69
- ) {
70
- const implementationBytecode = await getBytecode({
71
- ...contract,
72
- address: implementationAddress,
73
- });
74
- // return the original contract bytecode if the implementation bytecode is empty
75
- if (implementationBytecode === "0x") {
59
+ const implementations = await Promise.all([
60
+ getImplementationFromStorageSlot(contract),
61
+ getImplementationFromContractCall(contract),
62
+ ]);
63
+
64
+ for (const implementationAddress of implementations) {
65
+ if (
66
+ implementationAddress &&
67
+ isAddress(implementationAddress) &&
68
+ implementationAddress !== AddressZero
69
+ ) {
70
+ const implementationBytecode = await getBytecode({
71
+ ...contract,
72
+ address: implementationAddress,
73
+ });
74
+ // return the original contract bytecode if the implementation bytecode is empty
75
+ if (implementationBytecode === "0x") {
76
+ return {
77
+ address: contract.address,
78
+ bytecode: originalBytecode,
79
+ };
80
+ }
81
+
76
82
  return {
77
- address: contract.address,
78
- bytecode: originalBytecode,
83
+ address: implementationAddress,
84
+ bytecode: implementationBytecode,
79
85
  };
80
86
  }
81
-
82
- return {
83
- address: implementationAddress,
84
- bytecode: implementationBytecode,
85
- };
86
87
  }
87
88
 
88
89
  return { address: contract.address, bytecode: originalBytecode };
@@ -57,6 +57,7 @@ function hasMobileAPIs(): boolean {
57
57
  */
58
58
  export function isMobile(): boolean {
59
59
  // Primary signal: OS detection via user agent
60
+
60
61
  const isMobileOS = isAndroid() || isIOS();
61
62
 
62
63
  if (isMobileOS) {
@@ -70,5 +71,12 @@ export function isMobile(): boolean {
70
71
  return true;
71
72
  }
72
73
 
74
+ const isMobileViewport =
75
+ typeof window !== "undefined" && window.innerWidth < 640;
76
+
77
+ if (isMobileViewport) {
78
+ return true;
79
+ }
80
+
73
81
  return false;
74
82
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = "5.112.1-nightly-144bb33ffdf4d07b5d7370328ee640cd68d877c8-20251114000335";
1
+ export const version = "5.112.1";
@@ -341,34 +341,35 @@ export function createWallet<const ID extends WalletId>(
341
341
  }
342
342
  return;
343
343
  }
344
+ // on desktop, create a QR overlay
345
+ else {
346
+ try {
347
+ const { createQROverlay } = await import(
348
+ "./wallet-connect/qr-overlay.js"
349
+ );
344
350
 
345
- try {
346
- // on desktop, create a QR overlay
347
- const { createQROverlay } = await import(
348
- "./wallet-connect/qr-overlay.js"
349
- );
351
+ // Clean up any existing overlay
352
+ if (qrOverlay) {
353
+ qrOverlay.destroy();
354
+ }
350
355
 
351
- // Clean up any existing overlay
352
- if (qrOverlay) {
353
- qrOverlay.destroy();
356
+ // Create new QR overlay
357
+ qrOverlay = createQROverlay(uri, {
358
+ theme:
359
+ wcOptions.walletConnect?.qrModalOptions
360
+ ?.themeMode ?? "dark",
361
+ qrSize: 280,
362
+ showCloseButton: true,
363
+ onCancel: () => {
364
+ wcOptions.walletConnect?.onCancel?.();
365
+ },
366
+ });
367
+ } catch (error) {
368
+ console.error(
369
+ "Failed to create QR overlay:",
370
+ error,
371
+ );
354
372
  }
355
-
356
- // Create new QR overlay
357
- qrOverlay = createQROverlay(uri, {
358
- theme:
359
- wcOptions.walletConnect?.qrModalOptions
360
- ?.themeMode ?? "dark",
361
- qrSize: 280,
362
- showCloseButton: true,
363
- onCancel: () => {
364
- wcOptions.walletConnect?.onCancel?.();
365
- },
366
- });
367
- } catch (error) {
368
- console.error(
369
- "Failed to create QR overlay:",
370
- error,
371
- );
372
373
  }
373
374
  }
374
375
  }),