Skip to content

Commit b979419

Browse files
committed
fix: import from actions
1 parent d3f7d13 commit b979419

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

packages/delegator-e2e/test/execute-stateless7702.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
toMetaMaskSmartAccount,
1616
MetaMaskSmartAccount,
1717
} from '@metamask/delegation-toolkit';
18+
import { isValid7702Implementation } from '@metamask/delegation-toolkit/actions';
1819
import { generatePrivateKey, privateKeyToAccount } from 'viem/accounts';
1920
import { createClient, encodeFunctionData, parseEther } from 'viem';
2021
import { chain } from '../src/config';
@@ -472,8 +473,6 @@ test('isDeployed() returns false for addresses with code that are not delegated
472473
).toBe(false);
473474

474475
// Also test with the standalone function to show it would return false too
475-
const { actions } = await import('@metamask/delegation-toolkit');
476-
const { isValid7702Implementation } = actions;
477476

478477
const isContractDelegated = await isValid7702Implementation({
479478
client: publicClient,
@@ -488,9 +487,6 @@ test('isDeployed() returns false for addresses with code that are not delegated
488487
});
489488

490489
test('isValid7702Implementation works with EIP-7702 delegations', async () => {
491-
const { actions } = await import('@metamask/delegation-toolkit');
492-
const { isValid7702Implementation } = actions;
493-
494490
// Test that Alice's account (which is delegated to EIP7702StatelessDeleGator) returns true
495491
const isValidStateless = await isValid7702Implementation({
496492
client: publicClient,

0 commit comments

Comments
 (0)