Skip to content

Commit 99b7764

Browse files
committed
airdrop erc1155
1 parent feb0e4d commit 99b7764

File tree

1 file changed

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

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export async function createStylusProject() {
4747
{ title: "ERC1155", value: "erc1155" },
4848
{ title: "Airdrop ERC20", value: "airdrop20" },
4949
{ title: "Airdrop ERC721", value: "airdrop721" },
50+
{ title: "Airdrop ERC1155", value: "airdrop1155" },
5051
],
5152
message: "Select a template:",
5253
name: "projectType",
@@ -99,6 +100,15 @@ export async function createStylusProject() {
99100
newProject = spawnSync("git", ["clone", repoUrl, projectName], {
100101
stdio: "inherit",
101102
});
103+
} else if (projectType === "airdrop1155") {
104+
const repoUrl =
105+
"[email protected]:thirdweb-example/stylus-airdrop-erc1155-template.git";
106+
spinner.start(
107+
`Creating new Airdrop ERC1155 Stylus project: ${projectName}...`,
108+
);
109+
newProject = spawnSync("git", ["clone", repoUrl, projectName], {
110+
stdio: "inherit",
111+
});
102112
}
103113

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

0 commit comments

Comments
 (0)