Skip to content

Commit

Permalink
Merge pull request #5 from rsodre/bigints
Browse files Browse the repository at this point in the history
Fixed metadata types array init
  • Loading branch information
ponderingdemocritus authored Sep 29, 2023
2 parents 685b9f5 + 8fc4d9d commit 6bf67e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/bin/generateComponents.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ fs.readFile(jsonFilePath, "utf8", (err, jsonString) => {
fileContent += `import { defineComponent, Type as RecsType, World } from "@latticexyz/recs";\n\n`;
fileContent += `export function defineContractComponents(world: World) {\n return {\n`;

let types = []

data.components.forEach((component) => {
let types = []

const tableName = component.name;
fileContent += ` ${tableName}: (() => {\n`;
fileContent += ` const name = "${tableName}";\n`;
Expand Down

0 comments on commit 6bf67e2

Please sign in to comment.