Skip to content
Merged
Changes from 1 commit
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
10 changes: 4 additions & 6 deletions packages/delegator-e2e/test/execute-stateless7702.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,8 @@ test('isDeployed() returns false for addresses with code that are not delegated
).toBe(false);

// Also test with the standalone function to show it would return false too
const { isValid7702Implementation } = await import(
'@metamask/delegation-toolkit'
);
const { actions } = await import('@metamask/delegation-toolkit');
const { isValid7702Implementation } = actions;
Comment thread
hanzel98 marked this conversation as resolved.
Outdated

const isContractDelegated = await isValid7702Implementation({
client: publicClient,
Expand All @@ -489,9 +488,8 @@ test('isDeployed() returns false for addresses with code that are not delegated
});

test('isValid7702Implementation works with EIP-7702 delegations', async () => {
const { isValid7702Implementation } = await import(
'@metamask/delegation-toolkit'
);
const { actions } = await import('@metamask/delegation-toolkit');
const { isValid7702Implementation } = actions;

// Test that Alice's account (which is delegated to EIP7702StatelessDeleGator) returns true
const isValidStateless = await isValid7702Implementation({
Expand Down
Loading