File tree Expand file tree Collapse file tree 7 files changed +29
-14
lines changed
react/web/ui/ConnectWallet
wallets/in-app/web/lib/auth Expand file tree Collapse file tree 7 files changed +29
-14
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Fixes account logout state
Original file line number Diff line number Diff line change @@ -206,10 +206,10 @@ describe.runIf(process.env.TW_SECRET_KEY)(
206
206
} ) ,
207
207
} ) ,
208
208
) . rejects . toThrowErrorMatchingInlineSnapshot ( `
209
- [TransactionError: Error - !Qty
209
+ [TransactionError: DropClaimExceedLimit - 0,1
210
210
211
211
contract: ${ contract . address }
212
- chainId: 31337 ]
212
+ chainId: ${ contract . chain . id } ]
213
213
` ) ;
214
214
} ) ;
215
215
@@ -247,7 +247,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
247
247
} ) ,
248
248
} ) ,
249
249
) . rejects . toThrowErrorMatchingInlineSnapshot ( `
250
- [TransactionError: Error - !Qty
250
+ [TransactionError: DropClaimExceedLimit - 1,2
251
251
252
252
contract: ${ contract . address }
253
253
chainId: ${ contract . chain . id } ]
@@ -378,7 +378,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
378
378
account : TEST_ACCOUNT_D ,
379
379
} ) ,
380
380
) . rejects . toThrowErrorMatchingInlineSnapshot ( `
381
- [TransactionError: Error - !Qty
381
+ [TransactionError: DropClaimExceedLimit - 1,2
382
382
383
383
contract: ${ contract . address }
384
384
chainId: ${ contract . chain . id } ]
Original file line number Diff line number Diff line change @@ -212,10 +212,10 @@ describe.runIf(process.env.TW_SECRET_KEY)(
212
212
} ) ,
213
213
} ) ,
214
214
) . rejects . toThrowErrorMatchingInlineSnapshot ( `
215
- [TransactionError: Error - !Qty
215
+ [TransactionError: DropClaimExceedLimit - 0,1000000000000000000
216
216
217
217
contract: ${ contract . address }
218
- chainId: 31337 ]
218
+ chainId: ${ contract . chain . id } ]
219
219
` ) ;
220
220
} ) ;
221
221
@@ -262,7 +262,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
262
262
} ) ,
263
263
} ) ,
264
264
) . rejects . toThrowErrorMatchingInlineSnapshot ( `
265
- [TransactionError: Error - !Qty
265
+ [TransactionError: DropClaimExceedLimit - 3000000000000000000,4000000000000000000
266
266
267
267
contract: ${ contract . address }
268
268
chainId: ${ contract . chain . id } ]
@@ -421,7 +421,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
421
421
account : TEST_ACCOUNT_D ,
422
422
} ) ,
423
423
) . rejects . toThrowErrorMatchingInlineSnapshot ( `
424
- [TransactionError: Error - !Qty
424
+ [TransactionError: DropClaimExceedLimit - 1,2
425
425
426
426
contract: ${ contract . address }
427
427
chainId: ${ contract . chain . id } ]
Original file line number Diff line number Diff line change @@ -237,10 +237,10 @@ describe.runIf(process.env.TW_SECRET_KEY)(
237
237
} ) ,
238
238
} ) ,
239
239
) . rejects . toThrowErrorMatchingInlineSnapshot ( `
240
- [TransactionError: Error - !Qty
240
+ [TransactionError: DropClaimExceedLimit - 0,1
241
241
242
242
contract: ${ contract . address }
243
- chainId: 31337 ]
243
+ chainId: ${ contract . chain . id } ]
244
244
` ) ;
245
245
} ) ;
246
246
@@ -279,7 +279,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
279
279
} ) ,
280
280
} ) ,
281
281
) . rejects . toThrowErrorMatchingInlineSnapshot ( `
282
- [TransactionError: Error - !Qty
282
+ [TransactionError: DropClaimExceedLimit - 3,4
283
283
284
284
contract: ${ contract . address }
285
285
chainId: ${ contract . chain . id } ]
@@ -405,7 +405,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
405
405
account : TEST_ACCOUNT_D ,
406
406
} ) ,
407
407
) . rejects . toThrowErrorMatchingInlineSnapshot ( `
408
- [TransactionError: Error - !Qty
408
+ [TransactionError: DropClaimExceedLimit - 1,2
409
409
410
410
contract: ${ contract . address }
411
411
chainId: ${ contract . chain . id } ]
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ describe.runIf(process.env.TW_SECRET_KEY)(
93
93
} ,
94
94
salt : "test" ,
95
95
} ) ;
96
- expect ( address ) . toBe ( "0x777151741260F8d4098dD492e45FdB536F442672 " ) ;
96
+ expect ( address ) . toBe ( "0x9A18AD1DdCfA00009C2db7dc78a5746d85feF759 " ) ;
97
97
const isDeployed = await isContractDeployed ( {
98
98
client : TEST_CLIENT ,
99
99
chain : ANVIL_CHAIN ,
Original file line number Diff line number Diff line change @@ -1075,7 +1075,10 @@ function InAppWalletUserInfo(props: {
1075
1075
const { data : walletInfo } = useWalletInfo ( activeWallet ?. id ) ;
1076
1076
const isSmartWallet = hasSmartAccount ( activeWallet ) ;
1077
1077
const { data : walletName } = useQuery ( {
1078
- queryKey : [ activeWallet ?. id , "wallet-name" ] ,
1078
+ queryKey : [
1079
+ "wallet-name" ,
1080
+ { walletId : activeWallet ?. id , walletAddress : account ?. address } ,
1081
+ ] ,
1079
1082
queryFn : async ( ) => {
1080
1083
const lastAuthProvider = await getLastAuthProvider ( webLocalStorage ) ;
1081
1084
if ( lastAuthProvider === "guest" ) {
Original file line number Diff line number Diff line change @@ -321,6 +321,13 @@ export class Auth {
321
321
* @internal
322
322
*/
323
323
async logout ( ) : Promise < LogoutReturnType > {
324
+ if ( this . AuthQuerier ) {
325
+ await this . AuthQuerier . call < LogoutReturnType > ( {
326
+ procedureName : "logout" ,
327
+ params : undefined ,
328
+ } ) ;
329
+ }
330
+
324
331
const isRemoveAuthCookie = await this . localStorage . removeAuthCookie ( ) ;
325
332
const isRemoveUserId = await this . localStorage . removeWalletUserId ( ) ;
326
333
You can’t perform that action at this time.
0 commit comments