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

Simplify ByteString length calculation #18

Conversation

DanielSchiavini
Copy link

What I did

Get rid of side effect comparing byte string sizes

How I did it

  • Remove set methods from _BytestringT
  • Always pass size to constructor when available
  • Check the return type of method calls
  • Remove existing min/max length

How to verify it

  • Run the test tests/functional/codegen/test_interfaces.py::test_json_abi_bytes_clampers

Commit message

Get rid of side effect comparing byte string sizes

Description for the changelog

n/a

Cute Animal Picture

image

@DanielSchiavini DanielSchiavini changed the base branch from master to feat/libraries December 11, 2023 19:42
@DanielSchiavini
Copy link
Author

Closing in favor of vyperlang#3379 - some of this PR might be incorporated by @charles-cooper in the future.

@DanielSchiavini DanielSchiavini deleted the refactor/bytestring-type branch December 18, 2023 16:09
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.

1 participant