CloseReport()

CloseReport() public returns (bool succes)

Description

The function can be called by the owner of the report. This function is used by the auditor to close the report.

Require

It is required that the reportstatus is submitted (1) and that the msg.sender is the owner of the report.

#Check require
require(reports[_reportID].reportstatus == 1, "close report: report is closed");
require(reports[_reportID].owner == msg.sender, "close report: not the owner");

Input

The input is the index number of the report.

#The input
uint256 _reportID

Output

Returns true on successful execution.

#Returns value
returns (bool success)

Last updated

Was this helpful?