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

feat: pack hook config #169

Merged
merged 1 commit into from
Aug 29, 2024
Merged

feat: pack hook config #169

merged 1 commit into from
Aug 29, 2024

Conversation

adamegyed
Copy link
Contributor

Motivation

In #160 we packed ValidationConfig efficiently into a bytes25 type. For consistency, we should do the same for the HookConfig type.

Solution

Change HookConfig to a bytes25 type.

Pack all flags efficiently in the final byte, rather that spreading it out over 2 bytes.

Update usage in the account and tests.

@adamegyed adamegyed force-pushed the adam/add-validation-uo-flag branch 2 times, most recently from e3d31f2 to 22ff5e5 Compare August 29, 2024 21:29
@adamegyed adamegyed force-pushed the adam/pack-hook-config branch from 958b072 to 0e19879 Compare August 29, 2024 21:31
@adamegyed adamegyed changed the base branch from adam/add-validation-uo-flag to develop August 29, 2024 21:53
@adamegyed adamegyed force-pushed the adam/pack-hook-config branch from 0e19879 to f3c0514 Compare August 29, 2024 21:55
@adamegyed adamegyed merged commit e531ee4 into develop Aug 29, 2024
3 checks passed
@adamegyed adamegyed deleted the adam/pack-hook-config branch August 29, 2024 22:11
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.

2 participants