diff --git a/packages/world/ts/node/render-solidity/worldgen.ts b/packages/world/ts/node/render-solidity/worldgen.ts index 3305b8b27b..097558e681 100644 --- a/packages/world/ts/node/render-solidity/worldgen.ts +++ b/packages/world/ts/node/render-solidity/worldgen.ts @@ -49,7 +49,7 @@ export async function worldgen({ await Promise.all( systems.map(async (system) => { - const data = await fs.readFile(system.sourcePath, "utf8"); + const data = await fs.readFile(path.join(rootDir, system.sourcePath), "utf8"); // get external functions from a contract const { functions, errors, symbolImports } = contractToInterface(data, system.label); const imports = symbolImports.map(