Skip to content

refactor: Extract duplicate padding logic in Merkle proof functions#1697

Open
sashaodessa wants to merge 1 commit intoLayr-Labs:mainfrom
sashaodessa:patch-2
Open

refactor: Extract duplicate padding logic in Merkle proof functions#1697
sashaodessa wants to merge 1 commit intoLayr-Labs:mainfrom
sashaodessa:patch-2

Conversation

@sashaodessa
Copy link

The getProofKeccak and getProofSha256 functions contain identical code blocks that pad leaves to the next power of two and copy them into a layer array. This duplication reduces code maintainability and increases the risk of inconsistencies if future modifications are only applied to one function.

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