( input: UpdateProfileInput, )
| 477 | } |
| 478 | |
| 479 | export async function updateProfile( |
| 480 | input: UpdateProfileInput, |
| 481 | ): Promise<Profile> { |
| 482 | const profile = await invokeTauri<RawProfile>("update_profile", input); |
| 483 | return fromRawProfile(profile); |
| 484 | } |
| 485 | |
| 486 | export async function getUserProfile(pubkey?: string): Promise<Profile> { |
| 487 | const profile = await invokeTauri<RawProfile>("get_user_profile", { pubkey }); |
no test coverage detected