File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
packages/unity-js-bridge/src Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
" @thirdweb-dev/unity-js-bridge " : minor
3
- " @thirdweb-dev/wallets " : minor
3
+ " @thirdweb-dev/wallets " : patch
4
4
---
5
5
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
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class ThirdwebBridge implements TWBridge {
144
144
}
145
145
( globalThis as any ) . X_SDK_NAME = "UnitySDK_WebGL" ;
146
146
( 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 " ;
148
148
( globalThis as any ) . X_SDK_OS = browser ?. os ?? "unknown" ;
149
149
}
150
150
this . initializedChain = chain ;
@@ -812,18 +812,19 @@ class ThirdwebBridge implements TWBridge {
812
812
if ( ! this . activeWallet ) {
813
813
throw new Error ( "No wallet connected" ) ;
814
814
}
815
- try {
815
+ try {
816
816
const smartWallet = this . activeWallet as SmartWallet ;
817
817
const signer = await smartWallet . getPersonalWallet ( ) ?. getSigner ( ) ;
818
818
const res = await signer ?. getAddress ( ) ;
819
819
return JSON . stringify ( { result : res } , bigNumberReplacer ) ;
820
820
} 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
+ ) ;
822
824
const signer = await this . activeWallet . getSigner ( ) ;
823
825
const res = await signer . getAddress ( ) ;
824
826
return JSON . stringify ( { result : res } , bigNumberReplacer ) ;
825
827
}
826
-
827
828
}
828
829
829
830
public openPopupWindow ( ) {
You can’t perform that action at this time.
0 commit comments