-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(llm): π fix long Memo Tag issue on Stacks #8604
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
3 Skipped Deployments
|
import type { Transaction as StacksTransaction } from "@ledgerhq/live-common/families/stacks/types"; | ||
import type { MemoTagInputProps } from "LLM/features/MemoTag/types"; | ||
import { GenericMemoTagInput } from "LLM/features/MemoTag/components/GenericMemoTagInput"; | ||
|
||
export default (props: MemoTagInputProps<StacksTransaction>) => ( | ||
<GenericMemoTagInput | ||
{...props} | ||
textToValue={text => text.slice(0, STACKS_MAX_MEMO_SIZE)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we want to have this solution, can you confirm with our PM, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I double checked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@KVNLS @ComradeAERGO thank you for the reviews but I will have to edit this PR because the size limit is not 34 chars is 34 bytes so the current solution doesn't work for non ASCII characters: Screen.Recording.2024-12-05.at.18.19.45.mov |
e71286f
to
99476d0
Compare
β Checklist
npx changeset
was attached.π Description
Truncate Stacks memos in the input to prevent the transaction validation from failing. Follow up to #8340.
Screen.Recording.2024-12-04.at.18.28.15.mov
β Context
π§ Checklist for the PR Reviewers