-
Notifications
You must be signed in to change notification settings - Fork 71
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
[Feature/#270] Support vm.getBlockNumber cheatcode #325
Conversation
* Update cheatcode handler to recognize and proceses the getBlockNumber() * Add solidity test code to ensure the getBlockNumber() cheatcode works as expected
* Update submodule reference commits for forge-std, multicaller, openzeppelin-contracts, solady and solmate * Modify examples/simple/remappings.txt to include new paths for openzeppelin-contract, ds-test and forge-std
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this!
if it is necessary to update the forge-std submodule, this can be merged only after #323.
also, to make the scope of changes clearer, i'd suggest not updating irrelevant submodules in this pr.
additional comments below.
* Add newline character at the end of the blocknumer.t.sol file * Remove library dependencies at examples/simple/remappings.txt
@daejunpark |
thanks! we will merge this after #323. |
Change Type
Description
This PR introduces supporting vm.getBlockNumber() cheat code. Key changes include the
getBlockNumber()
cheat code function to retrieve the current block number and adding solidity test contract to verify the functionality ofgetBlockNumber
.Related Issues
This PR resolves #270
Changes
Cheat Code Implementation
getBlockNumber()
in the cheat code logic.Update submodules
Tests