|
|
|
|
|
by mpeg
3121 days ago
|
|
Since setGoalFailed is public (because you want it to be callable by the person trying to achieve the goal, and the contract owner is the supervisor) and does no checks, seems like anyone can mark a goal as failed and the money held in the smart contract will go to the contract owner? Shouldn't that check that msg.sender is either goals[_hash].owner or owner ? |
|