function difficulty(uint256) external;
Sets block.difficulty
.
If used with a post-merge EVM version (Paris and onwards), it will revert. In that case, use vm.prevrandao
instead.
vm.difficulty(25);
emit log_uint(block.difficulty); // 25
function difficulty(uint256) external;
Sets block.difficulty
.
If used with a post-merge EVM version (Paris and onwards), it will revert. In that case, use vm.prevrandao
instead.
vm.difficulty(25);
emit log_uint(block.difficulty); // 25