mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-15 00:48:12 -05:00
fix: Array length check added to _initPubActionModules
Co-authored-by: Victor Naumik <vicnaum@gmail.com>
This commit is contained in:
@@ -441,8 +441,12 @@ library PublicationLib {
|
||||
address[] calldata actionModules,
|
||||
bytes[] calldata actionModulesInitDatas
|
||||
) private returns (bytes[] memory) {
|
||||
if (actionModules.length != actionModulesInitDatas.length) {
|
||||
revert Errors.ArrayMismatch();
|
||||
}
|
||||
|
||||
bytes[] memory actionModuleInitResults = new bytes[](actionModules.length);
|
||||
uint256 actionModuleBitmap;
|
||||
uint256 enabledActionModulesBitmap;
|
||||
|
||||
uint256 i;
|
||||
while (i < actionModules.length) {
|
||||
|
||||
Reference in New Issue
Block a user