Skip to content

Commit e417f6a

Browse files
authored
move sw tests from mumbai to arb sep (#2537)
1 parent 65ea874 commit e417f6a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/auth/test/smart-wallet.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ describe("Wallet Authentication - EVM - Smart Wallet", async () => {
1111
let auth: ThirdwebAuth;
1212

1313
before(async () => {
14-
const factoryAddress = "0x13947435c2fe6BE51ED82F6f59C38617a323dB9B";
15-
const chain = 80001;
14+
const factoryAddress = "0xbf1C9aA4B1A085f7DA890a44E82B0A1289A40052";
15+
const chain = 421614;
1616
const localWallet = new LocalWallet();
1717
await localWallet.generate();
1818
const smartWallet = new SmartWallet({
@@ -48,12 +48,12 @@ describe("Wallet Authentication - EVM - Smart Wallet", async () => {
4848
it("Should verify logged in wallet with chain ID and expiration", async () => {
4949
const payload = await auth.login({
5050
expirationTime: new Date(Date.now() + 1000 * 60 * 5),
51-
chainId: "80001",
51+
chainId: "421614",
5252
});
5353

5454
auth.updateWallet(adminWallet);
5555
const address = await auth.verify(payload, {
56-
chainId: "80001",
56+
chainId: "421614",
5757
});
5858

5959
expect(address).to.equal(await signerWallet.getAddress());

packages/wallets/test/smart-wallet-integration.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable better-tree-shaking/no-top-level-side-effects */
22
import { SmartWallet } from "../src/evm/wallets/smart-wallet";
33
import { LocalWallet } from "../src/evm/wallets/local-wallet";
4-
import { Mumbai } from "@thirdweb-dev/chains";
4+
import { ArbitrumSepolia } from "@thirdweb-dev/chains";
55
import { ThirdwebSDK, SmartContract } from "@thirdweb-dev/sdk";
66
import { checkContractWalletSignature } from "../src/evm/connectors/smart-wallet/lib/check-contract-wallet-signature";
77

@@ -13,9 +13,9 @@ let smartWallet: SmartWallet;
1313
let smartWalletAddress: string;
1414
let personalWallet: LocalWallet;
1515
let contract: SmartContract;
16-
const factoryAddress = "0x13947435c2fe6BE51ED82F6f59C38617a323dB9B"; // pre 712
17-
const factoryAddressV2 = "0xC64d04AedecA895b3F20DC6866b4b532e0b22634"; // post 712
18-
const chain = Mumbai;
16+
const factoryAddress = "0x564cf6453a1b0FF8DB603E92EA4BbD410dea45F3"; // pre 712
17+
const factoryAddressV2 = "0xbf1C9aA4B1A085f7DA890a44E82B0A1289A40052"; // post 712
18+
const chain = ArbitrumSepolia;
1919
const SECRET_KEY = process.env.TW_SECRET_KEY;
2020

2121
const describeIf = (condition: boolean) =>
@@ -35,7 +35,7 @@ beforeAll(async () => {
3535
secretKey: SECRET_KEY,
3636
});
3737
contract = await sdk.getContract(
38-
"0xD170A53dADb19f62C78AB9982236857B71dbc83A", // mumbai edition drop
38+
"0x6A7a26c9a595E6893C255C9dF0b593e77518e0c3", // arb sep edition drop
3939
);
4040
});
4141

0 commit comments

Comments
 (0)