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

Add RegisterLayout.static_hash() #492

Merged
merged 2 commits into from
Mar 29, 2023
Merged

Add RegisterLayout.static_hash() #492

merged 2 commits into from
Mar 29, 2023

Conversation

HGSilveri
Copy link
Collaborator

Closes #490 .

@Augustinio
Copy link
Collaborator

Nit: I'm not sure I see a benefit to returning an int rather than the original hex.

@HGSilveri
Copy link
Collaborator Author

HGSilveri commented Mar 29, 2023

Nit: I'm not sure I see a benefit to returning an int rather than the original hex.

I agree we're splitting hairs at this point, but don't like how sometimes the hexstring has the '0x' and others it doesn't. With an int, the uniqueness is guaranteed.

Edit: But tbh, it's really either/or for me. I'll go with the hex if it's more convenient for you.

Copy link
Collaborator

@MatthieuMoreau0 MatthieuMoreau0 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for the quick implementation @HGSilveri !

@HGSilveri HGSilveri merged commit 8b5a4c5 into develop Mar 29, 2023
@HGSilveri HGSilveri deleted the hs/static-hash branch March 29, 2023 16:45
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.

[Improvement] Public deterministic hash method for RegisterLayout
3 participants