Skip to content

Conversation

@kariy
Copy link
Member

@kariy kariy commented Sep 3, 2025

alloy-primitives already have a macro for creating an eth Address but you are required to specify all 40 hex literal characters to satisfy the 20-bytes of an Address.

This new macro implementation is a bit less performant and can't be used in a const expression, but supports short (less than 40 characters) hex string. In most cases (usually in tests), I rarely need to specify the full length address.

@kariy kariy force-pushed the main branch 2 times, most recently from e3bd68b to e897bbb Compare December 30, 2025 17:28
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.

2 participants