Skip to content
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

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Jun 10, 2024

This is part of a series of pull requests.

See: #32.

@andreibancioiu andreibancioiu self-assigned this Jun 10, 2024
@andreibancioiu andreibancioiu changed the title Integration of serializer & ABI into queries controller and contract transactions factory. Integration of serializer & ABI into queries controller and contract transactions factory Jun 10, 2024
@andreibancioiu andreibancioiu marked this pull request as ready for review June 10, 2024 13:40
@andreibancioiu andreibancioiu changed the title Integration of serializer & ABI into queries controller and contract transactions factory Codecs (part 7): integration of serializer & ABI into queries controller and contract transactions factory Jun 10, 2024
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")
Copy link
Collaborator

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)

Copy link
Contributor Author

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.

Copy link
Contributor Author

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])
Copy link
Collaborator

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here: #57.

@andreibancioiu andreibancioiu merged commit 5355776 into feat/codecs Jun 11, 2024
1 of 5 checks passed
@andreibancioiu andreibancioiu deleted the codecs-june-7 branch June 11, 2024 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants