Skip to content
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

Change for 7702 for devnet-4 #7590

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Change for 7702 for devnet-4 #7590

wants to merge 7 commits into from

Conversation

ak88
Copy link
Contributor

@ak88 ak88 commented Oct 11, 2024

New spec for 7702 here:
https://eips.ethereum.org/EIPS/eip-7702

Changes

  • PER_AUTH_BASE_COST now costs 15.000
  • Fields are bounded as:
    assert auth.chain_id < 2 **64
    assert auth.nonce < 2 **64
    assert len(auth.address) == 20
    assert auth.y_parity < 2 **8
    assert auth.r < 2 **256
    assert auth.s < 2 **256
  • A zero address delegation will now reset the account to no code.
  • EXTCODEHASH returns 0 on empty accounts as well.

Tuple fields have been bounded by their type during RLP serialization/deserialization, so any field exceeding the bounds will result in RlpException

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

@@ -10,7 +11,7 @@ public class AuthorizationListJson
public Address Address { get; set; }
public ulong Nonce { get; set; }
public ulong V { get; set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be byte?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this actually shouldn't be V but yParity/RecoveryId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants