diff --git a/contracts/Solver.sol b/contracts/Solver.sol index 8a982ae3..dcf729d8 100644 --- a/contracts/Solver.sol +++ b/contracts/Solver.sol @@ -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;