File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed
packages/thirdweb/src/wallets/smart Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -285,29 +285,8 @@ describe.runIf(process.env.TW_SECRET_KEY).sequential(
285285 } ) ;
286286
287287 it ( "can switch chains" , async ( ) => {
288- const baseSepoliaEdition = getContract ( {
289- address : "0x638263e3eAa3917a53630e61B1fBa685308024fa" ,
290- chain : baseSepolia ,
291- client : TEST_CLIENT ,
292- } ) ;
293288 await wallet . switchChain ( baseSepolia ) ;
294- const tx = await sendAndConfirmTransaction ( {
295- transaction : claimTo ( {
296- contract : baseSepoliaEdition ,
297- quantity : 1n ,
298- to : smartWalletAddress ,
299- tokenId : 0n ,
300- } ) ,
301- // biome-ignore lint/style/noNonNullAssertion: should be set after switching chains
302- account : wallet . getAccount ( ) ! ,
303- } ) ;
304- expect ( tx . transactionHash ) . toHaveLength ( 66 ) ;
305- const balance = await balanceOf ( {
306- contract : baseSepoliaEdition ,
307- owner : smartWalletAddress ,
308- tokenId : 0n ,
309- } ) ;
310- expect ( balance ) . toEqual ( 1n ) ;
289+ expect ( wallet . getChain ( ) ?. id ) . toEqual ( baseSepolia . id ) ;
311290 } ) ;
312291
313292 it ( "can execute a 2 tx in parallel" , async ( ) => {
You can’t perform that action at this time.
0 commit comments