@@ -8,8 +8,8 @@ import { parseEventLogs } from "../../event/actions/parse-logs.js";
88import { TEST_WALLET_A } from "~test/addresses.js" ;
99import { verifyEip1271Signature } from "../../auth/verify-hash.js" ;
1010import { verifyTypedData } from "../../auth/verify-typed-data.js" ;
11+ import { arbitrumSepolia } from "../../chains/chain-definitions/arbitrum-sepolia.js" ;
1112import { baseSepolia } from "../../chains/chain-definitions/base-sepolia.js" ;
12- import { sepolia } from "../../chains/chain-definitions/sepolia.js" ;
1313import {
1414 addAdmin ,
1515 adminUpdatedEvent ,
@@ -41,12 +41,12 @@ let smartWalletAddress: string;
4141let personalAccount : Account ;
4242let accountContract : ThirdwebContract ;
4343
44- const chain = sepolia ;
44+ const chain = arbitrumSepolia ;
4545const client = TEST_CLIENT ;
4646const contract = getContract ( {
4747 client,
4848 chain,
49- address : "0xe2cb0eb5147b42095c2FfA6F7ec953bb0bE347D8 " ,
49+ address : "0x6A7a26c9a595E6893C255C9dF0b593e77518e0c3 " ,
5050} ) ;
5151
5252describe . runIf ( process . env . TW_SECRET_KEY ) . sequential (
@@ -132,6 +132,8 @@ describe.runIf(process.env.TW_SECRET_KEY).sequential(
132132 } ) ;
133133 await new Promise ( ( resolve ) => setTimeout ( resolve , 3000 ) ) ; // pause for a second to prevent race condition
134134
135+ expect ( await isContractDeployed ( accountContract ) ) . toEqual ( true ) ;
136+
135137 const signature = await smartAccount . signMessage ( {
136138 message : "hello world" ,
137139 } ) ;
@@ -201,10 +203,10 @@ describe.runIf(process.env.TW_SECRET_KEY).sequential(
201203 } ) ;
202204
203205 await expect ( tx ) . rejects . toMatchInlineSnapshot ( `
204- [TransactionError: Execution Reverted: {"code":3,"message":"execution reverted: Not authorized"}
206+ [TransactionError: Error - Not authorized
205207
206208 contract: ${ contract . address }
207- chainId: 11155111 ]
209+ chainId: 421614 ]
208210 ` ) ;
209211 } ) ;
210212
0 commit comments