diff --git a/.github/workflows/slither.yml b/.github/workflows/slither.yml index 6d51887..14c321b 100644 --- a/.github/workflows/slither.yml +++ b/.github/workflows/slither.yml @@ -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 diff --git a/src/deposit-box.sol b/src/deposit-box.sol new file mode 100644 index 0000000..12fad4a --- /dev/null +++ b/src/deposit-box.sol @@ -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; + } +} \ No newline at end of file