-
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
Codecs (part 7): integration of serializer & ABI into queries controller and contract transactions factory #56
Conversation
if is_list_of_bytes(args): | ||
return args | ||
|
||
raise ValueError("cannot encode arguments: when ABI is not available, they must be either typed values or buffers") |
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.
...typed values or bytes
, maybe? (optional)
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.
Will be applied in the very next PR.
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 here: #57.
data_parts.append(function) if not data_parts else data_parts.append(arg_to_string(function)) | ||
data_parts.extend(args_to_strings(arguments)) | ||
data_parts.extend([arg.hex() for arg in prepared_arguments]) |
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.
could have been:
data_parts += [arg.hex() for arg in prepared_arguments]
just to stay consistent with the other methods, but it's not a big deal, can stay as it is
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.
Will be applied in the very next PR.
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 here: #57.
This is part of a series of pull requests.
See: #32.