Skip to content

Commit

Permalink
test updated 4naly3er SARIF
Browse files Browse the repository at this point in the history
  • Loading branch information
mcp-coinbase committed Sep 18, 2024
1 parent 6228b8d commit 3344d9a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ jobs:
- name: Run 4naly3er Action
uses: ./.github/actions/4naly3er-action
id: slither
with:
sarif: /tmp/report.sarif.json
fail-on: none

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
Expand Down
12 changes: 12 additions & 0 deletions src/deposit-box.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pragma solidity ^0.5.0;

contract DepositBox {
mapping(address => uint) balance;

// Accept deposit
function deposit(uint amount) public payable {
require(msg.value == amount, 'incorrect amount');
// Should update user balance
balance[msg.sender] == amount;
}
}

0 comments on commit 3344d9a

Please sign in to comment.