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

CCQ/EVM: Testing library for building responses #3768

Merged
merged 4 commits into from
Mar 4, 2024

Conversation

bruce-riley
Copy link
Contributor

No description provided.

@bruce-riley bruce-riley force-pushed the ccq/evm_testing_library_for_building_responses branch 6 times, most recently from 8eed896 to 8894390 Compare February 8, 2024 23:12
@bruce-riley bruce-riley force-pushed the ccq/evm_testing_library_for_building_responses branch from a1ab016 to f0ca59f Compare February 13, 2024 16:58
@bruce-riley bruce-riley marked this pull request as ready for review February 13, 2024 21:53
@bruce-riley bruce-riley requested review from djb15 and removed request for jaydenwindle February 16, 2024 15:34
Copy link
Collaborator

@djb15 djb15 left a comment

Choose a reason for hiding this comment

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

What do you think about all the buildXXXBytes methods also returning the length of the bytes being returned?

There are a lot of lengths passed around that presumably a user has to manually fetch themselves with BYTES.length.

If we did this you can disregard my inline comment

@bruce-riley
Copy link
Contributor Author

@djb15, I changed the functions to derive the length from the bytes passed in, which I think eliminates the need to make the functions also return the length? Please let me know if you disagree.

@bruce-riley bruce-riley force-pushed the ccq/evm_testing_library_for_building_responses branch from ee0b650 to feae3f5 Compare February 22, 2024 13:21
@bruce-riley bruce-riley requested a review from djb15 February 22, 2024 13:55
Copy link
Collaborator

@djb15 djb15 left a comment

Choose a reason for hiding this comment

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

Changes look good to me! Byte array lengths aren't being checked but I think we'll be hard pressed to be using 4GB byte arrays

@bruce-riley bruce-riley merged commit 0a49c6e into main Mar 4, 2024
22 checks passed
@bruce-riley bruce-riley deleted the ccq/evm_testing_library_for_building_responses branch March 4, 2024 17:48
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.

4 participants