Skip to content

Commit

Permalink
fix enums
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Jul 12, 2024
1 parent 26c8bd3 commit f788d2b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/common/src/codegen/render-solidity/renderEnums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ export function renderEnums(enums: Enums): string {
return `
${renderedSolidityHeader}
${Object.entries(enums).map(
([name, values]) => `
enum ${name} {
${values.join(", ")}
}
`,
)}
${Object.entries(enums)
.map(
([name, values]) => `
enum ${name} {
${values.join(", ")}
}
`,
)
.join("")}
`;
}

0 comments on commit f788d2b

Please sign in to comment.