Mystery Box

First Flight #25
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

In all functions, the visibility can be changed from public to external.

Since the functions are not used internally, their visibility can be changed to external.

Output from the Aderyn:

- Found in src/MysteryBox.sol [Line: 30]()
```solidity
function setBoxPrice(uint256 _price) public {
```
- Found in src/MysteryBox.sol [Line: 35]()
```solidity
function addReward(string memory _name, uint256 _value) public {
```
- Found in src/MysteryBox.sol [Line: 41]()
```solidity
function buyBox() public payable {
```
- Found in src/MysteryBox.sol [Line: 46]()
```solidity
function openBox() public {
```
- Found in src/MysteryBox.sol [Line: 71]()
```solidity
function withdrawFunds() public {
```
- Found in src/MysteryBox.sol [Line: 77]()
```solidity
function transferReward(address _to, uint256 _index) public {
```
- Found in src/MysteryBox.sol [Line: 83]()
```solidity
function claimAllRewards() public {
```
- Found in src/MysteryBox.sol [Line: 96]()
```solidity
function claimSingleReward(uint256 _index) public {
```
- Found in src/MysteryBox.sol [Line: 107]()
```solidity
function getRewards() public view returns (Reward[] memory) {
```
- Found in src/MysteryBox.sol [Line: 111]()
```solidity
function getRewardPool() public view returns (Reward[] memory) {
```
- Found in src/MysteryBox.sol [Line: 117]()
```solidity
function changeOwner(address _newOwner) public {
```
Updates

Appeal created

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!