Skip to content

Conversation

@Melvillian
Copy link
Collaborator

This addresses N-06 from the Q3 2025 OZ audit

Since Solidity 0.8.18, mappings can include named parameters to provide more clarity about their purpose. Named parameters allow mappings to be declared in the form mapping(KeyType KeyName? => ValueType ValueName?). This feature enhances code readability and maintainability.

Throughout the codebase, multiple instances of mappings without named parameters were identified:

The approvedWorkloads state variable in the BlockBuilderPolicy contract. The nonces state variable in the BlockBuilderPolicy contract. The registeredTEEs state variable in the FlashtestationRegistry contract. The nonces state variable in the FlashtestationRegistry contract. The cachedWorkloads state variable in the BlockBuilderPolicy contract. Consider adding named parameters to mappings in order to improve the readability and maintainability of the codebase.

This addresses N-06 from the Q3 2025 OZ audit

Since Solidity 0.8.18, mappings can include named parameters to provide more clarity about their purpose. Named parameters allow mappings to be declared in the form mapping(KeyType KeyName? => ValueType ValueName?). This feature enhances code readability and maintainability.

Throughout the codebase, multiple instances of mappings without named parameters were identified:

The approvedWorkloads state variable in the BlockBuilderPolicy contract.
The nonces state variable in the BlockBuilderPolicy contract.
The registeredTEEs state variable in the FlashtestationRegistry contract.
The nonces state variable in the FlashtestationRegistry contract.
The cachedWorkloads state variable in the BlockBuilderPolicy contract.
Consider adding named parameters to mappings in order to improve the readability and maintainability of the codebase.
@Melvillian Melvillian merged commit 1c98ef8 into main Aug 20, 2025
2 checks passed
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