Skip to content

Commit

Permalink
fix(cli): use fileSelector in worldgen (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
dk1a authored Mar 17, 2023
1 parent bb68670 commit fa021ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/render-solidity/worldgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ export async function worldgen(
}));
const systemInterfaceName = `I${system.basename}`;
// create an interface using the external functions and imports
const { fileSelector } = config.systems[system.basename];
const output = renderSystemInterface({
name: systemInterfaceName,
functionPrefix: config.namespace === "" ? "" : `${config.namespace}_${system.basename}_`,
functionPrefix: config.namespace === "" ? "" : `${config.namespace}_${fileSelector}_`,
functions,
imports,
});
Expand Down

0 comments on commit fa021ed

Please sign in to comment.