8000 feat: add delegation designator constants by onbjerg · Pull Request #30 · alloy-rs/eips · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

feat: add delegation designator constants #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2025
Merged

Conversation

onbjerg
Copy link
Collaborator
@onbjerg onbjerg commented Feb 23, 2025

Motivation

It can be useful to check if an account is an EIP-7702 delegated account when retrieving the code for it, which requires checking that the prefix of the bytecode matches the delegation designator outlined in the EIP. It can also be helpful to see if the delegation was cleared.

Solution

Add constants for the delegation designator and the cleared variant of the delegation designator.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@onbjerg onbjerg added the enhancement New feature or request label Feb 23, 2025
@onbjerg onbjerg merged commit 9741bff into main Feb 24, 2025
25 checks passed
@onbjerg onbjerg deleted the onbjerg/deleg-designators branch February 24, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0