INPUT // SOURCE_CODE.sol
SIZE: 414 B
SOLIDITY 0.8.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; contract Vault is Ownable { mapping(address => uint256) public balances; function deposit() external payable { balances[msg.sender] += msg.value; } // BUG: Missing onlyOwner function withdraw() external { payable(msg.sender).transfer(address(this).balance); } }
[ INITIATE AUDIT ]
Mission Control // Live Feed
● ONLINE
Waiting for pipeline initiation...