Skip to content

Commit a5040df

Browse files
authored
feat(cheatcodes): mark rpc + eth_getLogs cheatcodes as script safe (foundry-rs#6255)
* feat: mark *Fork + rpc + eth_getLogs cheatcodes as safe * fix: mark other *fork cheatcodes unsafe * chore: regen json
1 parent 855d005 commit a5040df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/cheatcodes/assets/cheatcodes.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cheatcodes/defs/src/vm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,11 @@ interface Vm {
383383
function transact(uint256 forkId, bytes32 txHash) external;
384384

385385
/// Performs an Ethereum JSON-RPC request to the current fork URL.
386-
#[cheatcode(group = Evm, safety = Unsafe)]
386+
#[cheatcode(group = Evm, safety = Safe)]
387387
function rpc(string calldata method, string calldata params) external returns (bytes memory data);
388388

389389
/// Gets all the logs according to specified filter.
390-
#[cheatcode(group = Evm, safety = Unsafe)]
390+
#[cheatcode(group = Evm, safety = Safe)]
391391
function eth_getLogs(uint256 fromBlock, uint256 toBlock, address addr, bytes32[] memory topics)
392392
external
393393
returns (EthGetLogs[] memory logs);

0 commit comments

Comments
 (0)