Skip to content

Commit c8ef22b

Browse files
authored
Update Attestation.sol
1 parent 402f692 commit c8ef22b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contracts/Attestation.sol

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ contract Attestation {
6262
CompanyUsers[_company_address][msg.sender] = 1;
6363
}
6464

65+
function editCompany(bytes32 _data,address _company_address) companyExist(_company_address) onlyCompanyOwner(_company_address) {
66+
CompanyDetails storage companyDetails = Company[_company_address];
67+
companyDetails.active = true;
68+
companyDetails.owner = msg.sender;
69+
companyDetails.data = _data;
70+
}
71+
6572
function attestByUser(address _company_address, bytes32 _connection_type, Direction _direction, uint256 _start, uint256 _end) companyExist(_company_address){
6673
if(!Users[msg.sender].active)
6774
{

0 commit comments

Comments
 (0)