Skip to content

Commit efceadd

Browse files
[SDK] test: Update smart wallet tests to use Arbitrum Sepolia (#6436)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR updates the test file `smart-wallet-integration-v07.test.ts` to switch the blockchain network from `sepolia` to `arbitrumSepolia`, modifies the contract address, and adds a new expectation for contract deployment verification. ### Detailed summary - Added import for `arbitrumSepolia`. - Changed the blockchain network from `sepolia` to `arbitrumSepolia`. - Updated the contract address from `0xe2cb0eb5147b42095c2FfA6F7ec953bb0bE347D8` to `0x6A7a26c9a595E6893C255C9dF0b593e77518e0c3`. - Added expectation to verify if the contract is deployed. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent c653d70 commit efceadd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/thirdweb/src/wallets/smart/smart-wallet-integration-v07.test.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { parseEventLogs } from "../../event/actions/parse-logs.js";
88
import { TEST_WALLET_A } from "~test/addresses.js";
99
import { verifyEip1271Signature } from "../../auth/verify-hash.js";
1010
import { verifyTypedData } from "../../auth/verify-typed-data.js";
11+
import { arbitrumSepolia } from "../../chains/chain-definitions/arbitrum-sepolia.js";
1112
import { baseSepolia } from "../../chains/chain-definitions/base-sepolia.js";
12-
import { sepolia } from "../../chains/chain-definitions/sepolia.js";
1313
import {
1414
addAdmin,
1515
adminUpdatedEvent,
@@ -41,12 +41,12 @@ let smartWalletAddress: string;
4141
let personalAccount: Account;
4242
let accountContract: ThirdwebContract;
4343

44-
const chain = sepolia;
44+
const chain = arbitrumSepolia;
4545
const client = TEST_CLIENT;
4646
const contract = getContract({
4747
client,
4848
chain,
49-
address: "0xe2cb0eb5147b42095c2FfA6F7ec953bb0bE347D8",
49+
address: "0x6A7a26c9a595E6893C255C9dF0b593e77518e0c3",
5050
});
5151

5252
describe.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

Comments
 (0)