Skip to content

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
@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.

3 participants