-
Notifications
You must be signed in to change notification settings - Fork 124
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(dot/telemetry): telemetry hashes to be in the hexadecimal format #2194
Changes from 5 commits
79c8b95
2dd9160
d9addfd
a73a4dd
2b98e9f
9056f43
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,7 +109,7 @@ func (h *Hash) UnmarshalJSON(data []byte) error { | |
} | ||
|
||
// MarshalJSON converts hash to hex data | ||
func (h *Hash) MarshalJSON() ([]byte, error) { | ||
func (h Hash) MarshalJSON() ([]byte, error) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is needed since there are telemetry message fields that uses There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice catch!!! |
||
return json.Marshal(h.String()) | ||
} | ||
|
||
|
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.
Cant't we define an implementation of
Message
directly instead of this convoluted wrapping?