Skip to content
RED SAGSkills
hardBlockchain Developer interview question

How does EIP-7702 change assumptions that smart contracts and dApps make about EOAs, and what would you change in your code?

What the interviewer wants to hear

  • EOAs can delegate to contract code, gaining batching, sponsorship and custom logic
  • tx.origin == msg.sender and extcodesize checks no longer prove an EOA
  • Delegated EOAs can receive callbacks and reenter
  • Malicious delegation targets are a phishing risk; storage collisions between delegates
  • Design for smart accounts: ERC-1271 signatures, no EOA-only assumptions

Model answer

EIP-7702, live since the Pectra upgrade, lets an EOA sign an authorization that sets its code to point at a contract. Its address and key stay the same, but it can now batch calls, have gas sponsored and run custom validation. That breaks old assumptions. A check like msg.sender == tx.origin no longer means the caller cannot run contract logic, and code size checks fail too. A delegated EOA can also have receive hooks, so transfers to "users" can reenter. In my code I remove any security logic based on EOA detection and rely on proper reentrancy protection and economic limits instead. I support ERC-1271 signature checks alongside ECDSA, since accounts may validate signatures through code. For wallet-facing features, delegation targets are very powerful, so users should only delegate to audited code, and switching delegates needs care with storage layout.

Can you answer it under time pressure?

Take a timed hard round and get scored on every answer.

Start mock interview

More hard Blockchain Developer questions