CloseAuditRequest()
CloseAuditRequest() public returns (bool succes)
CloseAuditRequest() public returns (bool succes)
Description
The function can be called by the owner of the audit. This function is used by the auditee to close the audit.
Require
It is required that the msg.sender is the owner of the audit, the audit is not closed and that there are no pending reports in the audit.
#Check require
require(audits[_contracthash].owner == msg.sender, "close audit: msg.sender is not owner of audit");
require(audits[_contracthash].closed == false, "close audit: audit is closed");
require(pending == 0, "close audit: there is an open report");
Input
The input is the ID of the audit.
#The input
bytes32 _contracthash
Output
Returns true on successful execution.
#Returns value
returns (bool success)
Last updated
Was this helpful?