Skip to content

Commit cf6ba08

Browse files
committed
ver
1 parent 9fdf793 commit cf6ba08

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.changeset/good-ways-listen.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
"@thirdweb-dev/unity-js-bridge": minor
3-
"@thirdweb-dev/wallets": minor
3+
"@thirdweb-dev/wallets": patch
44
---
55

6-
[Smart Wallet] Always force deploy on sign/auth, remove legacy signing, always use 1271
6+
[Smart Wallet] Always force deploy on sign/auth, use 712 with 1271 where possible

packages/unity-js-bridge/src/thirdweb-bridge.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class ThirdwebBridge implements TWBridge {
144144
}
145145
(globalThis as any).X_SDK_NAME = "UnitySDK_WebGL";
146146
(globalThis as any).X_SDK_PLATFORM = "unity";
147-
(globalThis as any).X_SDK_VERSION = "4.6.4";
147+
(globalThis as any).X_SDK_VERSION = "4.7.0";
148148
(globalThis as any).X_SDK_OS = browser?.os ?? "unknown";
149149
}
150150
this.initializedChain = chain;
@@ -812,18 +812,19 @@ class ThirdwebBridge implements TWBridge {
812812
if (!this.activeWallet) {
813813
throw new Error("No wallet connected");
814814
}
815-
try{
815+
try {
816816
const smartWallet = this.activeWallet as SmartWallet;
817817
const signer = await smartWallet.getPersonalWallet()?.getSigner();
818818
const res = await signer?.getAddress();
819819
return JSON.stringify({ result: res }, bigNumberReplacer);
820820
} catch {
821-
console.debug("Could not find a smart wallet, defaulting to normal signer");
821+
console.debug(
822+
"Could not find a smart wallet, defaulting to normal signer",
823+
);
822824
const signer = await this.activeWallet.getSigner();
823825
const res = await signer.getAddress();
824826
return JSON.stringify({ result: res }, bigNumberReplacer);
825827
}
826-
827828
}
828829

829830
public openPopupWindow() {

0 commit comments

Comments
 (0)