Skip to content

Commit

Permalink
Update apillon sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
MoMannn committed Mar 27, 2024
1 parent 03e355e commit 1eeda52
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"nodemon": "^3.0.1"
},
"dependencies": {
"@apillon/sdk": "1.2.0-beta.1",
"@apillon/sdk": "2.0.1",
"dotenv": "^16.3.1",
"ts-node": "10.9.2",
"typescript": "5.3.3"
Expand Down
1 change: 1 addition & 0 deletions src/nft-collection-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { prepareEnv } from "./helpers";
maxSupply: 100,
isRevokable: false,
isSoulbound: false,
isAutoIncrement: true,
royaltiesAddress: "0x65266dbf8259968f54747bc83155238370d3808a",
royaltiesFees: 1,
drop: false,
Expand Down
6 changes: 5 additions & 1 deletion src/nft-collection-mint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ import { EnvLevel, prepareEnv } from "./helpers";
});

const collection = await nft.collection(process.env.APILLON_COLLECTION);
await collection.mint("0x65266dbf8259968f54747bc83155238370d3808a", 1);
const res = await collection.mint({
receivingAddress: "0x65266dbf8259968f54747bc83155238370d3808a",
quantity: 1,
});
console.log("TransactionHash: ", res.transactionHash);
})().catch(async (err) => {
console.log(err);
});

0 comments on commit 1eeda52

Please sign in to comment.