Skip to content

Commit 2b6609f

Browse files
authored
cheatcodes: mark copyStorage and setArbitraryStorage as Unsafe (foundry-rs#13882)
1 parent 0558755 commit 2b6609f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

crates/cheatcodes/assets/cheatcodes.json

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

crates/cheatcodes/spec/src/vm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,16 +2968,16 @@ interface Vm {
29682968
function resumeTracing() external view;
29692969

29702970
/// Utility cheatcode to copy storage of `from` contract to another `to` contract.
2971-
#[cheatcode(group = Utilities)]
2971+
#[cheatcode(group = Utilities, safety = Unsafe)]
29722972
function copyStorage(address from, address to) external;
29732973

29742974
/// Utility cheatcode to set arbitrary storage for given target address.
2975-
#[cheatcode(group = Utilities)]
2975+
#[cheatcode(group = Utilities, safety = Unsafe)]
29762976
function setArbitraryStorage(address target) external;
29772977

29782978
/// Utility cheatcode to set arbitrary storage for given target address and overwrite
29792979
/// any storage slots that have been previously set.
2980-
#[cheatcode(group = Utilities)]
2980+
#[cheatcode(group = Utilities, safety = Unsafe)]
29812981
function setArbitraryStorage(address target, bool overwrite) external;
29822982

29832983
/// Sorts an array in ascending order.

0 commit comments

Comments
 (0)