Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/cli/src/contracts/LibDeploy.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { IComponent } from "solecs/interfaces/IComponent.sol";
import { getAddressById } from "solecs/utils.sol";
import { IUint256Component } from "solecs/interfaces/IUint256Component.sol";
import { ISystem } from "solecs/interfaces/ISystem.sol";
import { SystemStorage } from "solecs/SystemStorage.sol";

// Components (requires 'components=...' remapping in project's remappings.txt)
<% components.forEach(component => { -%>
Expand Down Expand Up @@ -69,6 +70,9 @@ library LibDeploy {

// Call initializer libraries
if (!_reuseComponents) {
// Allow initializers to utilize SystemStorage
SystemStorage.init(result.world, result.world.components());

<% initializers.forEach((name) => { -%>
<%= name -%>.init(result.world);
<% }); -%>
Expand Down