Full article

Start with a wallet action

Imagine a wallet bundling a token approval and a swap into one transaction. Delegation lets an existing account run code that supports this workflow. The available operations depend on the wallet implementation.

Read what the signature covers

The authorization includes a chain ID, a code address and the account nonce. A chain ID of zero permits use on other chains where the remaining conditions are satisfied. Check both the scope and the target address.

Locate the failure

Suppose the delegation is processed successfully but the swap reverts because its price condition is no longer met. Under the specification, an execution failure does not roll back a processed delegation. The failed swap and active delegation can coexist.

Distinguish the token allowance

An ERC-20 allowance records how much of a token a spender can use. The delegation records which code the account uses. Revoking a token allowance still leaves the account’s delegation to be checked separately.

Verify the resulting state

Check the chain and account address, then inspect the delegation in a wallet or explorer that supports EIP-7702. The protocol supports clearing it with a new authorization targeting the zero address. After submission, verify the resulting account state on that chain.