src/utils/skynet-ops.js
// Returns the profile of a given public key from the UserProfile DAC.
Returns the profile of a given public key from the UserProfile DAC.
Returns the profile of a given public key from the UserProfile DAC .
async function readProfileFromPublicKey(userPublicKey) {
    try {
        const res = await userProfile.getProfile(userPublicKey);
        console.debug(`Reading profile information of user:\n\tpublicKey=${userPublicKey}\n\t->res=${JSON.stringify(res)}`);
        return res;
    } catch (e) {
        console.error(`: ${e.message}`);
    }
}
async function readProfileFromPublicKey ( userPublicKey ) { try { const res = await userProfile . getProfile ( userPublicKey ) ; console . debug ( ` \n \t ${ userPublicKey } \n \t ${ JSON . stringify ( res ) } ` ) ; return res ; } catch ( e ) { console . error ( ` ${ e . message } ` ) ; } }
Returns the profile of a given public key from the UserProfile DAC.
Returns the profile of a given public key from the UserProfile DAC .