Skip to content

Commit

Permalink
solidity bug
Browse files Browse the repository at this point in the history
  • Loading branch information
okwme committed Mar 22, 2024
1 parent cb0f520 commit 918795c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/Solver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ contract Solver is Ownable {
uint[2] memory c,
uint[] memory input
) public {
address owner = Problems(problems).ownerOf(problemId);
require(owner == msg.sender, "Not the owner");

(, uint256 bodyCount, , uint256 previousTickCount) = Problems(problems)
.problems(problemId);
uint256 numberOfBodies = bodyCount;
Expand Down

0 comments on commit 918795c

Please sign in to comment.