Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { parseEventLogs } from "../../event/actions/parse-logs.js";
import { TEST_WALLET_A } from "~test/addresses.js";
import { verifyEip1271Signature } from "../../auth/verify-hash.js";
import { verifyTypedData } from "../../auth/verify-typed-data.js";
import { arbitrumSepolia } from "../../chains/chain-definitions/arbitrum-sepolia.js";
import { baseSepolia } from "../../chains/chain-definitions/base-sepolia.js";
import { sepolia } from "../../chains/chain-definitions/sepolia.js";
import {
addAdmin,
adminUpdatedEvent,
Expand Down Expand Up @@ -41,12 +41,12 @@ let smartWalletAddress: string;
let personalAccount: Account;
let accountContract: ThirdwebContract;

const chain = sepolia;
const chain = arbitrumSepolia;
const client = TEST_CLIENT;
const contract = getContract({
client,
chain,
address: "0xe2cb0eb5147b42095c2FfA6F7ec953bb0bE347D8",
address: "0x6A7a26c9a595E6893C255C9dF0b593e77518e0c3",
});

describe.runIf(process.env.TW_SECRET_KEY).sequential(
Expand Down Expand Up @@ -132,6 +132,8 @@ describe.runIf(process.env.TW_SECRET_KEY).sequential(
});
await new Promise((resolve) => setTimeout(resolve, 3000)); // pause for a second to prevent race condition

expect(await isContractDeployed(accountContract)).toEqual(true);

const signature = await smartAccount.signMessage({
message: "hello world",
});
Expand Down Expand Up @@ -201,10 +203,10 @@ describe.runIf(process.env.TW_SECRET_KEY).sequential(
});

await expect(tx).rejects.toMatchInlineSnapshot(`
[TransactionError: Execution Reverted: {"code":3,"message":"execution reverted: Not authorized"}
[TransactionError: Error - Not authorized

contract: ${contract.address}
chainId: 11155111]
chainId: 421614]
`);
});

Expand Down
Loading