Skip to content

Commit

Permalink
fix(bootstrap): validate length of init data >= 4
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Jun 3, 2024
1 parent 4c19337 commit cabcaa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Bootstrap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ contract Bootstrap is
{
require(_clientChainGatewayLogic != address(0), "Bootstrap: client chain gateway logic address cannot be empty");
require(
_clientChainInitializationData.length > 0, "Bootstrap: client chain initialization data cannot be empty"
_clientChainInitializationData.length >= 4, "Bootstrap: client chain initialization data is malformed"
);
clientChainGatewayLogic = _clientChainGatewayLogic;
clientChainInitializationData = _clientChainInitializationData;
Expand Down

0 comments on commit cabcaa9

Please sign in to comment.