MCPcopy Create free account
hub / github.com/GalaChain/sdk / getUserProfile

Function getUserProfile

chaincode/src/contracts/authenticate.testutils.spec.ts:121–129  ·  view source on GitHub ↗
(
  chaincode: TestChaincode,
  address: string
)

Source from the content-addressed store, hash-verified

119}
120
121export async function getUserProfile(
122 chaincode: TestChaincode,
123 address: string
124): Promise<GalaChainResponse<UserProfile>> {
125 const dto = await createValidDTO(GetObjectDto, {
126 objectId: `\u0000GCUP\u0000${address}\u0000`
127 });
128 return chaincode.invoke("PublicKeyContract:GetObjectByKey", dto);
129}
130
131export async function getMyProfile(
132 chaincode: TestChaincode,

Calls 2

createValidDTOFunction · 0.90
invokeMethod · 0.80

Tested by

no test coverage detected