Skip to content

Conversation

@adamegyed
Copy link
Contributor

Motivation

We have some missing documentation and an unused constant.

Solution

Add the missing comment and remove the constant.

Copy link
Collaborator

@jaypaik jaypaik left a comment

Choose a reason for hiding this comment

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

Nit: could you also rename the fr variables?

Comment on lines +5 to +9
// ModuleEntity is a packed representation of a module function
// Layout:
// 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA________________________ // Address
// 0x________________________________________BBBBBBBB________________ // Entity ID
// 0x________________________________________________0000000000000000 // unused
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also maybe newline before this, and consider making this a NatSpec @dev comment?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh I see that this is for ModuleEntity imported above. Is this necessary? IModularAccount already describes it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's repeated in both IModularAccount and each of the type encoding / decoding libraries (ValidationConfigLib, HookConfigLib) so I added it here too.

@adamegyed adamegyed force-pushed the adam/fix-moduleentitylib branch from 4d3aac3 to c8b7e28 Compare September 5, 2024 14:18
@adamegyed adamegyed merged commit 5ba3568 into develop Sep 6, 2024
@adamegyed adamegyed deleted the adam/fix-moduleentitylib branch September 6, 2024 15:35
jaypaik pushed a commit that referenced this pull request Sep 20, 2024
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