-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Hex Encode Data in Tx Responses #4028
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4028 +/- ##
========================================
Coverage 60.02% 60.02%
========================================
Files 212 212
Lines 15104 15104
========================================
Hits 9066 9066
Misses 5417 5417
Partials 621 621 |
if r.Data != nil { | ||
sb.WriteString(fmt.Sprintf(" Data: %s\n", string(r.Data))) | ||
if r.Data != "" { | ||
sb.WriteString(fmt.Sprintf(" Data: %s\n", r.Data)) |
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.
can we use tab \t
in this function?
sb.WriteString(fmt.Sprintf(" Data: %s\n", r.Data)) | |
sb.WriteString(fmt.Sprintf("\tData: %s\n", r.Data)) |
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.
oh no, please don't.... I'd even remove the trailing \n
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.
lol...the tab vs space war begins. idc really (go's standard is tabs actually), but I'd rather be consistent. What to do?
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.
plz no \t
🙏
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.
ACK
closes: #3916
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added a relevant changelog entry:
sdkch add [section] [stanza] [message]
rereviewed
Files changed
in the github PR explorerFor Admin Use: