Skip to content

Conversation

davesque
Copy link
Contributor

What was wrong?

See issue #85 .

How was it fixed?

Removed process_type.

Cute Animal Picture

Cute animal picture

@@ -1,48 +1,6 @@
"""
This module provided for backwards compatibility.
"""
from eth_abi.grammar import (
TupleType,
Copy link
Member

Choose a reason for hiding this comment

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

I must have missed this when it got merged, but worth pointing out now.

The ./project/utils module in our repos has some conventions that help keep those modules well isolated.

  • everything in utils is private API
  • anything in utils may not import from outside of utils.

If you have to break the import rule which occasionally happens, the imports should happen inline in the function bodies to prevent circular imports from happening.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice. I'll keep that in mind from here on out.

@davesque davesque requested a review from carver July 27, 2018 18:42
('int[2]', ('int', '256', [[2]])),
('function', ('bytes', '24', [])),
('fixed', ('fixed', '128x18', [])),
('ufixed', ('ufixed', '128x18', [])),
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like these last three cases aren't tested by the grammar parser https://github.com/ethereum/eth-abi/blob/master/tests/test_grammar.py#L77

Maybe now is a good time to add them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added some tests in the test_grammar module for those cases.

@davesque davesque force-pushed the remove-process-type branch from 8769858 to 623e907 Compare August 29, 2018 18:01
@davesque davesque mentioned this pull request Aug 29, 2018
@davesque davesque merged commit 7fd3bcc into ethereum:master Aug 30, 2018
@davesque davesque deleted the remove-process-type branch August 30, 2018 17:40
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