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

♻️ Use getBlockTimestamp() for block.timestamp in vm.warp #294

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

pcaversaccio
Copy link
Owner

@pcaversaccio pcaversaccio commented Jan 2, 2025

🕓 Changelog

This PR refactors TimelockController.t.sol to use getBlockTimestamp() instead of block.timestamp, as block.timestamp is assumed to be constant across a transaction and will be optimised out by the compiler. For more details, see issue. Additionally, solhint has been upgraded to the latest version, v5.0.4, and all submodules have been updated to their most recent commits.

🐶 Cute Animal Picture

@pcaversaccio pcaversaccio self-assigned this Jan 2, 2025
@pcaversaccio pcaversaccio added this to the 0.1.1 milestone Jan 2, 2025
@pcaversaccio pcaversaccio added dependencies 🔁 Pull requests that update a dependency file refactor/cleanup ♻️ Code refactorings and cleanups labels Jan 2, 2025
@pcaversaccio pcaversaccio changed the title ♻️ Use getBlockTimestamp() instead of block.timestamp if vm.warp ♻️ Use getBlockTimestamp() for block.timestamp in vm.warp Jan 2, 2025
@pcaversaccio pcaversaccio merged commit 866a8f4 into main Jan 3, 2025
15 checks passed
@pcaversaccio pcaversaccio deleted the refactor/block-timestamp-in-warp-cheatcode branch January 3, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies 🔁 Pull requests that update a dependency file refactor/cleanup ♻️ Code refactorings and cleanups
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant