ClaimResponse()
ClaimResponse() public returns (bool succes)
ClaimResponse() public returns (bool succes)
Description
The function can be called by the owner of the report. This function is used by the auditor to respond to a report.
Require
It is required that the status of the report is responded (2) and that the msg.sender is the owner of the report.
#Check require
require(reports[_reportID].reportstatus == 2, "claim report: report is not status 2");
require(reports[_reportID].owner == msg.sender, "claim report: msg.sender is not owner of report");
Input
The input is the index number of the report and check if the auditor agrees with the response of the auditee.
#The input
uint256 _reportID,
bool agreed
Output
Returns true on successful execution.
#Returns value
returns (bool success)
Last updated
Was this helpful?