Skip to content

Commit b24e669

Browse files
committed
fix: adding blueprint manager address validation on blueprint created hook
1 parent ade58c2 commit b24e669

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MasterBlueprintServiceManager.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ contract MasterBlueprintServiceManager is RootChainEnabled, AccessControl, Pausa
261261
onlyFromRootChain
262262
whenNotPaused
263263
{
264+
require(blueprint.manager != address(0), "Invalid blueprint");
264265
blueprints.set(blueprintId, blueprint.manager);
265266
blueprintOwners.set(blueprintId, owner);
266267
emit BlueprintCreated(owner, blueprintId, blueprint);

0 commit comments

Comments
 (0)