Skip to content

Commit 6e9a9ad

Browse files
committed
erc1155
1 parent 54826fa commit 6e9a9ad

File tree

1 file changed

+8
-0
lines changed
  • packages/thirdweb/src/cli/commands/stylus

1 file changed

+8
-0
lines changed

packages/thirdweb/src/cli/commands/stylus/create.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export async function createStylusProject() {
4444
{ title: "Default", value: "default" },
4545
{ title: "ERC20", value: "erc20" },
4646
{ title: "ERC721", value: "erc721" },
47+
{ title: "ERC1155", value: "erc1155" },
4748
],
4849
message: "Select a template:",
4950
name: "projectType",
@@ -71,6 +72,13 @@ export async function createStylusProject() {
7172
newProject = spawnSync("git", ["clone", repoUrl, projectName], {
7273
stdio: "inherit",
7374
});
75+
} else if (projectType === "erc1155") {
76+
const repoUrl =
77+
"[email protected]:thirdweb-example/stylus-erc1155-template.git";
78+
spinner.start(`Creating new ERC1155 Stylus project: ${projectName}...`);
79+
newProject = spawnSync("git", ["clone", repoUrl, projectName], {
80+
stdio: "inherit",
81+
});
7482
}
7583

7684
if (!newProject || newProject.status !== 0) {

0 commit comments

Comments
 (0)