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

refactor: mark "activeFork" as "view" #35

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Vm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ interface VmSafe {
/// @dev This interface contains cheatcodes that are potentially unsafe on a live network.
interface Vm is VmSafe {
//// @dev Returns the identifier of the currently active fork. Reverts if no fork is currently active.
function activeFork() external returns (uint256 forkId);
function activeFork() external view returns (uint256 forkId);

/// @dev In forking mode, explicitly grant the given address cheatcode access
function allowCheatcodes(address account) external;
Expand Down