VerifyReport()

VerifyReport() public returns (bool succes)

Description

The function can be called by the owner of the audit. This function is used by the auditee to respond to a report.

Require

It is required that the msg.sender is the owner of the audit, that the status of the report is submitted (1) and that the bug review and addition have a value < 5 (because the bugs can only be classified 1,2,3,4 for the risks critical too low and zero for no risk identified).

#Check require
require(audits[_contracthash].owner == msg.sender, "verify report: not the owner of the audit");
require(reports[_reportID].reportstatus == 1, "verify report: report is not status 1");
require(_bugClaim[i] < 5);
require(addition < 5);

Input

The input is the index number of the report, an array for the bug risk per bug as determined by the auditee, a additional payment for the auditor (based on the bug risks) and check if the report is received.

#The input
uint256 _reportID, 
uint256[10] memory _bugClaim,
uint256 addition 
bool received

Output

Returns true on successful execution.

#Returns value
returns (bool success)

Last updated

Was this helpful?