Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
anajuliabit committed Aug 3, 2024
1 parent 204491c commit d1e5745
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 33 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,35 +124,35 @@ jobs:
echo "✅ Passed or warnings found" >> $GITHUB_STEP_SUMMARY
fi
slither-analyze:
runs-on: "ubuntu-latest"
permissions:
actions: "read"
contents: "read"
security-events: "write"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"

- name: "Install Bun"
uses: "oven-sh/setup-bun@v1"

- name: "Install the Node.js dependencies"
run: "bun install"

- name: "Run Slither analysis"
uses: "crytic/[email protected]"
id: "slither"
with:
fail-on: "none"
sarif: "results.sarif"

- name: "Upload SARIF file to GitHub code scanning"
uses: "github/codeql-action/upload-sarif@v2"
with:
sarif_file: ${{ steps.slither.outputs.sarif }}

- name: "Add summary"
run: |
echo "## Slither result" >> $GITHUB_STEP_SUMMARY
echo "✅ Uploaded to GitHub code scanning" >> $GITHUB_STEP_SUMMARY
# slither-analyze:
# runs-on: "ubuntu-latest"
# permissions:
# actions: "read"
# contents: "read"
# security-events: "write"
# steps:
# - name: "Check out the repo"
# uses: "actions/checkout@v4"

# - name: "Install Bun"
# uses: "oven-sh/setup-bun@v1"

# - name: "Install the Node.js dependencies"
# run: "bun install"

# - name: "Run Slither analysis"
# uses: "crytic/[email protected]"
# id: "slither"
# with:
# fail-on: "none"
# sarif: "results.sarif"

# - name: "Upload SARIF file to GitHub code scanning"
# uses: "github/codeql-action/upload-sarif@v2"
# with:
# sarif_file: ${{ steps.slither.outputs.sarif }}

# - name: "Add summary"
# run: |
# echo "## Slither result" >> $GITHUB_STEP_SUMMARY
# echo "✅ Uploaded to GitHub code scanning" >> $GITHUB_STEP_SUMMARY
1 change: 1 addition & 0 deletions test/DelegateStaking.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ contract Stake is DelegateStakingTest {
uint256 _amount,
uint256 _jump
) public {
vm.assume(_depositor1 != _depositor2);
_amount = _boundToRealisticStake(_amount);

_jump = _boundRealisticTimeAhead(_jump);
Expand Down
2 changes: 1 addition & 1 deletion test/Staking.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ contract ClaimRewards is StakingTest {
assertApproxEqAbs(rewards, expectedRewards, 1e18, "Wrong rewards");
}

function testFuzz_claimRewardBurnShares(
function testFuzz_ClaimRewardBurnShares(
address _depositor,
uint256 _amount,
uint256 _jump
Expand Down

0 comments on commit d1e5745

Please sign in to comment.