Skip to content

Commit 18570b7

Browse files
committed
chore: ci fix
1 parent 3989930 commit 18570b7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/solidity.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
fail-on: none
5555

5656
- name: Upload findings to GitHub Advanced Security Dashboard
57+
continue-on-error: true
5758
uses: github/codeql-action/upload-sarif@v3
5859
with:
5960
sarif_file: ${{ steps.slither.outputs.sarif }}

lib/forge-std/src/StdCheats.sol

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,18 @@ abstract contract StdCheatsSafe {
349349
);
350350
}
351351

352+
function assumeUnusedAddress(address addr) internal view virtual {
353+
uint256 size;
354+
assembly {
355+
size := extcodesize(addr)
356+
}
357+
vm.assume(size == 0);
358+
359+
assumeNotPrecompile(addr);
360+
assumeNotZeroAddress(addr);
361+
assumeNotForgeAddress(addr);
362+
}
363+
352364
function readEIP1559ScriptArtifact(string memory path)
353365
internal
354366
view

0 commit comments

Comments
 (0)