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 a warning comment about potential dirty bits in getTransactionHash #872

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

mmv08
Copy link
Member

@mmv08 mmv08 commented Dec 17, 2024

This commit adds a detailed warning in the Safe.sol contract regarding potential dirty bits in assembly code for types smaller than 256 bits. It emphasizes the importance of considering this for future changes while explaining the rationale behind using assembly for memory efficiency.

No functional changes were made to the contract logic. This update aims to improve code clarity and maintainability.

Originally reported by @jhoenicke

This commit adds a detailed warning in the `Safe.sol` contract regarding potential dirty bits in assembly code for types smaller than 256 bits. It emphasizes the importance of considering this for future changes while explaining the rationale behind using assembly for memory efficiency.

No functional changes were made to the contract logic. This update aims to improve code clarity and maintainability.
@mmv08 mmv08 requested review from a team, nlordell, akshay-ap and remedcu and removed request for a team December 17, 2024 13:11
@mmv08 mmv08 merged commit 4309776 into main Dec 18, 2024
25 checks passed
@mmv08 mmv08 deleted the docs/get-transaction-hash-dirty-bits branch December 18, 2024 09:03
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants