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

Move to pyteal as pt in ABI tests #285

Closed

Conversation

michaeldiamant
Copy link
Contributor

Follows #284 to remove temporary flake8 ignores.

Except for method_return_test.py, all changes made mechanically via
pyteal-as-pt.txt. Rename to .sh after downloading because Github allows limited upload formats.

@tzaffi tzaffi mentioned this pull request Apr 20, 2022
4 tasks
Co-authored-by: Zeph Grunschlag <[email protected]>
@michaeldiamant michaeldiamant requested a review from tzaffi April 20, 2022 15:46
options = pt.CompileOptions(version=5)

STATIC_TYPES: List[pt.abi.TypeSpec] = [
pt.abi.BoolTypeSpec(),
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

pt.abi... caught me by surprise, but is certainly in the spirit of incoming CONTRIBUTING.md

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'd probably recommend something like this:

import pyteal as pt
from pyteal import abi

I don't mind the two imports in this case, and since it would require fewer changes in this PR, I have a preference for it, but this is not a blocker to me.

Copy link
Contributor

@tzaffi tzaffi left a comment

Choose a reason for hiding this comment

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

LGTM

options = pt.CompileOptions(version=5)

STATIC_TYPES: List[pt.abi.TypeSpec] = [
pt.abi.BoolTypeSpec(),
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'd probably recommend something like this:

import pyteal as pt
from pyteal import abi

I don't mind the two imports in this case, and since it would require fewer changes in this PR, I have a preference for it, but this is not a blocker to me.

@michaeldiamant michaeldiamant changed the base branch from feature/abi-merge_master to master April 20, 2022 18:48
@michaeldiamant michaeldiamant changed the base branch from master to feature/abi April 20, 2022 18:49
@michaeldiamant
Copy link
Contributor Author

Closing - We opted for the approach in #286.

@michaeldiamant michaeldiamant deleted the feature/abi-merge_master-remove_ignores branch April 20, 2022 20:13
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