( chaincode: TestChaincode, address: string )
| 119 | } |
| 120 | |
| 121 | export 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 | |
| 131 | export async function getMyProfile( |
| 132 | chaincode: TestChaincode, |
no test coverage detected