-
Notifications
You must be signed in to change notification settings - Fork 0
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
ABI/codecs implementation (part 1) #47
Conversation
def _do_serialize(self, parts_holder: PartsHolder, input_values: Sequence[Any]): | ||
for i, value in enumerate(input_values): | ||
if value is None: | ||
raise ValueError("cannot serialize nil value") |
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.
nil
seems very Golang-ish
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 in #49.
def _do_deserialize(self, parts_holder: PartsHolder, output_values: Sequence[Any]): | ||
for i, value in enumerate(output_values): | ||
if value is None: | ||
raise ValueError("cannot deserialize into nil value") |
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.
same comm as above regarding nil
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 in #49.
https://docs.multiversx.com/developers/data/serialization-overview | ||
""" | ||
|
||
def __init__(self, parts_separator: str): |
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.
maybe parts_separator
can be @
by default? But i also understand this respects the Go implementation. Not a big deal anyway.
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.
The @
separator is provided in the higher-level components. For example:
This is part of a series of pull requests.
See: #32.
This can be reviewed side-by-side with: