https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/modules/protoforms/BaseVault.sol#L128
https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/modules/protoforms/BaseVault.sol#L34
The vault creation only supports up to six (6) hashed permissions within a vault.
The following shows that the number of hashed permission (or leaf nodes) is hardcoded to six (6).  The new bytes32[](6); code initialises the hashes array with 6 empty items within the baseVault.generateMerkleTree function.
Thus, if there are more than six (6) permissions, the hashes array will overflow and the transaction will revert.
https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/modules/protoforms/BaseVault.sol#L128
Assume that Alice calls the baseVault.deployVault with the following module settings:
Thus, the actual call will be as follows:
When Alice calls baseVault.deployVault with the above three (3) modules, the hashes array will overflow and the transaction will revert.
 https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/modules/protoforms/BaseVault.sol#L34
The vault creation only supports up to six (6) hashed permission within a vault, thus limiting the functionality of the vault and restricting the expandability of the vault.
It is recommended not to hardcode the array size (6 in this case) for the hashes array within the baseVault.generateMerkleTree function to provide more flexibility to the vault creator.
Considering calculating the total number of leaf nodes first before initialising the hashes array.
