Skip to content

Commit 0e5d1c3

Browse files
committed
fix: resolve linter issues
- Remove unused accountContract variable from test file - Remove unused import for ThirdwebContract - Organize imports in correct order
1 parent 5550437 commit 0e5d1c3

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

packages/thirdweb/src/extensions/erc7702/account/createSessionKey.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { ThirdwebClient } from "../../../client/client.js";
21
import type { Chain } from "../../../chains/types.js";
2+
import type { ThirdwebClient } from "../../../client/client.js";
3+
import { getContract } from "../../../contract/contract.js";
34
import { randomBytesHex } from "../../../utils/random.js";
45
import type { Account } from "../../../wallets/interfaces/wallet.js";
5-
import { getContract } from "../../../contract/contract.js";
66
import {
77
createSessionWithSig,
88
isCreateSessionWithSigSupported,

packages/thirdweb/src/extensions/erc7702/account/sessionkey.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ import { beforeAll, describe, expect, it } from "vitest";
66
import { TEST_CLIENT } from "../../../../test/src/test-clients.js";
77
import { TEST_ACCOUNT_A } from "../../../../test/src/test-wallets.js";
88
import { ZERO_ADDRESS } from "../../../constants/addresses.js";
9-
import {
10-
getContract,
11-
type ThirdwebContract,
12-
} from "../../../contract/contract.js";
139
import { parseEventLogs } from "../../../event/actions/parse-logs.js";
1410
import { sendAndConfirmTransaction } from "../../../transaction/actions/send-and-confirm-transaction.js";
1511
import { sessionCreatedEvent } from "../__generated__/MinimalAccount/events/SessionCreated.js";
@@ -25,7 +21,6 @@ describe.runIf(process.env.TW_SECRET_KEY)(
2521
() => {
2622
const chainId = 11155111;
2723
let account: Account;
28-
let accountContract: ThirdwebContract;
2924

3025
beforeAll(async () => {
3126
// Create 7702 Smart EOA
@@ -51,13 +46,6 @@ describe.runIf(process.env.TW_SECRET_KEY)(
5146
value: 0n,
5247
}),
5348
});
54-
55-
// Will auto resolve abi since it's deployed
56-
accountContract = getContract({
57-
address: account.address,
58-
chain: defineChain(chainId),
59-
client: TEST_CLIENT,
60-
});
6149
}, 120_000);
6250

6351
it("should allow adding adminlike session keys", async () => {

0 commit comments

Comments
 (0)