reporting/src/reporting.cpp
ACTION reporting::updatepk(name user, std::string publicKey) {
  require_auth(user);
  user_t users( _self, _self.value );
	auto iterator = users.find(user.value);
	check( !(iterator == users.end()), "No such user on the blockchain.");
	check( !(iterator->frozen), "This user is frozen.");
	users.modify(iterator, _self, [&]( auto& row ) { 
	  row.publicKey = publicKey;
	});
}
/**
 * Method for updating the publicKey of an user. Nothing special to expect.
 */
Method for updating the publicKey of an user. Nothing special to expect.
Method for updating the publicKey of an user . Nothing special to expect .
ACTION reporting::updatepk(name user, std::string publicKey) {
  require_auth(user);
  user_t users( _self, _self.value );
	auto iterator = users.find(user.value);
	check( !(iterator == users.end()), "No such user on the blockchain.");
	check( !(iterator->frozen), "This user is frozen.");
	users.modify(iterator, _self, [&]( auto& row ) { 
	  row.publicKey = publicKey;
	});
}
ACTION reporting :: updatepk ( name user , std :: string publicKey ) { require_auth ( user ) ; user_t users ( _self , _self . value ) ; auto iterator = users . find ( user . value ) ; check ( ! ( iterator == users . end ( ) ) , " " ) ; check ( ! ( iterator -> frozen ) , " " ) ; users . modify ( iterator , _self , [ & ] ( auto & row ) { row . publicKey = publicKey ; } ) ; }
Method for updating the publicKey of an user.
Method for updating the publicKey of an user .