-
Notifications
You must be signed in to change notification settings - Fork 117
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
codec; Enable custom scale methods #597
Conversation
DecodeCustom handles calling Decode function for types that have Decode defined, otherwise uses regular Scale Decoding functions Signed-off-by: edwardmack <[email protected]>
Signed-off-by: edwardmack <[email protected]>
Signed-off-by: edwardmack <[email protected]>
…nSafe/gossamer into ed/525-custom-scale-methods
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.
looks great!! :)
@@ -11,8 +11,8 @@ require ( | |||
github.com/disiqueira/gotree v1.0.0 | |||
github.com/ethereum/go-ethereum v1.9.6 | |||
github.com/filecoin-project/go-leb128 v0.0.0-20190212224330-8d79a5489543 | |||
github.com/golang/protobuf v1.3.2 // indirect |
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.
I have raised https://github.com/ChainSafe/gossamer/wiki/GoMOD#pr-597 to track the gomod changes for this PR. Lets try to keep it updated for the next changes.
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.
Looks good, I have added a comment on the go.mod changes to track the changes, other than that it looks good.
* checks if type has Encode function * Added DecodeCustom to handle calling Decode func DecodeCustom handles calling Decode function for types that have Decode defined, otherwise uses regular Scale Decoding functions Signed-off-by: edwardmack <[email protected]> * go fmt'ed Signed-off-by: edwardmack <[email protected]> * fixed lint rants Signed-off-by: edwardmack <[email protected]> Co-authored-by: noot <[email protected]>
This PR introduces functionality for handling custom Encode/Decode function for types when these functions have been defined.
Changes
Tests:
Issues:
closes #525