Skip to content

Commit

Permalink
fix(world): read system source from root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Aug 13, 2024
1 parent 5cee9a0 commit e35eafd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/world/ts/node/render-solidity/worldgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e35eafd

Please sign in to comment.