The Publish Article function in OlasHub.sol is responsible for calling attest function in EAS.sol contract and making sure attested UID returned from function is stored in mapping on OlasHub contract.
Pseudocode
mapping(address => bytes32[]) public articlesUid;
function publish(bytes32 data) returns (bytes32) {
bytes32 new_uid = attest(AttestationRequest request);
articlesUid[userAddress].push(new_uid);
}
The Publish Article function in OlasHub.sol is responsible for calling attest function in EAS.sol contract and making sure attested UID returned from function is stored in mapping on OlasHub contract.
Pseudocode