Skip to content

Commit

Permalink
chore: ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
roderik committed Jan 9, 2025
1 parent 392f126 commit 0cbe530
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/solidity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
fail-on: none

- name: Upload findings to GitHub Advanced Security Dashboard
continue-on-error: true
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.slither.outputs.sarif }}
Expand Down
12 changes: 12 additions & 0 deletions lib/forge-std/src/StdCheats.sol
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,18 @@ abstract contract StdCheatsSafe {
);
}

function assumeUnusedAddress(address addr) internal view virtual {
uint256 size;
assembly {
size := extcodesize(addr)
}
vm.assume(size == 0);

assumeNotPrecompile(addr);
assumeNotZeroAddress(addr);
assumeNotForgeAddress(addr);
}

function readEIP1559ScriptArtifact(string memory path)
internal
view
Expand Down

0 comments on commit 0cbe530

Please sign in to comment.