Skip to content

Commit

Permalink
feat: export makeMessage fn (#2283)
Browse files Browse the repository at this point in the history
## Why is this change needed?
This function will be useful in the backend for a script that generates
a message from another message and publishes with a new signer.

## Merge Checklist

_Choose all relevant options below by adding an `x` now or at any time
before submitting for review_

- [x] 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 focuses on making the `makeMessage` function in `builders.ts`
file exportable.

### Detailed summary
- Exported the `makeMessage` function in `builders.ts` file.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
  • Loading branch information
aditiharini authored Oct 2, 2024
1 parent 6b8120c commit 48be01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/builders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const makeMessageData = async <TData extends protobufs.MessageData>(
return validations.validateMessageData(data as TData, publicClients);
};

const makeMessage = async <TMessage extends protobufs.Message>(
export const makeMessage = async <TMessage extends protobufs.Message>(
messageData: protobufs.MessageData,
signer: Signer,
): HubAsyncResult<TMessage> => {
Expand Down

0 comments on commit 48be01a

Please sign in to comment.