Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vladilen11 committed Sep 21, 2023
1 parent b2575a2 commit 4378e7a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function generateComponent(config: ObeliskConfig, srcPrefix: string) {
use ${config.projectName}::world::{Self, World};
// Systems
${getFriendSystem(config.projectName, config.systems)}
${getFriendSystem(config.projectName, config.systems)}
\tpublic fun id() : address {
\t\tentity_key::from_bytes(b"${capitalizeFirstLetter(componentName)} Comp")
Expand Down Expand Up @@ -75,9 +75,7 @@ export function generateSingletonComponent(
${getFriendSystem(config.projectName, config.systems)}
\tpublic fun id() : address {
\t\tentity_key::from_bytes(b"${capitalizeFirstLetter(
config.projectName
)} ${capitalizeFirstLetter(componentName)} Comp")
\t\tentity_key::from_bytes(b"${capitalizeFirstLetter(componentName)} Comp")
\t}
${renderStruct(value)}
${renderRegisterFuncWithInit(value)}
Expand Down

0 comments on commit 4378e7a

Please sign in to comment.