-
Notifications
You must be signed in to change notification settings - Fork 81
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
Feature/rpc and serialize fixes #575
Conversation
Codecov Report
@@ Coverage Diff @@
## master #575 +/- ##
==========================================
- Coverage 62.5% 62.27% -0.23%
==========================================
Files 123 123
Lines 9990 10028 +38
==========================================
+ Hits 6244 6245 +1
- Misses 3445 3481 +36
- Partials 301 302 +1
Continue to review full report at Codecov.
|
d3416ba
to
6c2a34a
Compare
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.
And it would be nice to improve 4798d6c commit message, because it's adding unmarshalling for specific data type. Not critical, though.
pkg/core/transaction/type.go
Outdated
@@ -52,3 +58,44 @@ func (t TXType) String() string { | |||
func (t TXType) MarshalJSON() ([]byte, error) { | |||
return []byte(`"` + t.String() + `"`), nil | |||
} | |||
|
|||
// UnmarshalJSON implements the json.Unmarshaler interface. | |||
func (t *TXType) UnmarshalJSON(data []byte) (err error) { |
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.
(error)
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.
fixed
pkg/core/transaction/type.go
Outdated
} | ||
|
||
*t, err = TXTypeFromString(string(data[1 : l-1])) | ||
return |
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.
return err
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.
fixed
ce4f399
to
6066166
Compare
done |
Problem
Missing unmarshal function for TXType and missing parametrization for "getblock" so it can return pure bytes
...
Solution
this patchset
...