Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
documentation(hub-web): Added getFnameFromFid to readme (#2433)
## Why is this change needed? Since changes were requested in docs (farcasterxyz/docs#54), I have made a PR to update Farcaster's docs (farcasterxyz/docs#356), thus decided to update the readme file. ## Merge Checklist _Choose all relevant options below by adding an `x` now or at any time before submitting for review_ - [ ] PR title adheres to the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) standard - [ ] PR has a [changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets) - [x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore) - [ ] PR includes [documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs) if necessary. <!-- start pr-codex --> --- ## PR-Codex overview This PR adds a new function for retrieving a user's first name using their FID from the `HubRpcClient`. ### Detailed summary - Introduced a new function `getFnameFromFid`. - The function takes `fid` (number) and `client` (`HubRpcClient`) as parameters. - It retrieves user data of type `UserDataType.FNAME`. - Returns the user's first name or an empty string if not found. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information