Skip to content
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

Tron - add note support to tx query #909

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

peachbits
Copy link
Contributor

@peachbits peachbits commented Mar 19, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

if (data != null) {
memos.push({
type: 'text',
value: Buffer.from(base16.parse(data)).toString('ascii'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are memos really ASCII? I would have expected UTF-8, at least. What if the raw bytes aren't valid UTF-8? Do we need a try/catch around this? Would it make sense for the catch block to emit a "hex" memo with the raw bytes that we can't decode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants