diff --git a/src/StdCheats.sol b/src/StdCheats.sol index 84ad8c68..b73ce1a8 100644 --- a/src/StdCheats.sol +++ b/src/StdCheats.sol @@ -351,7 +351,7 @@ abstract contract StdCheatsSafe { function assumeEmptyAddress(address addr) internal view virtual { uint256 size; - assembly ("memory-safe") { + assembly { size := extcodesize(addr) } vm.assume(size == 0);