Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update dependencies across examples and packages v2 #1879

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions examples/nft-add-remove-allowances.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ async function main() {

const nftCollection = [];
for (var i = 0; i < CID.length; i++) {
nftCollection[i] = await (
await tokenMinterFcn(CID[i], nftTokenId.toString())
).getReceipt(client);
nftCollection[i] = await tokenMinterFcn(CID[i], nftTokenId.toString());

console.log(
`Created NFT ${nftTokenId.toString()} with serial: ${nftCollection[
i
Expand Down Expand Up @@ -260,9 +259,11 @@ async function main() {

const nftCollection2 = [];
for (let i = 0; i < CID2.length; i++) {
nftCollection2[i] = await (
await tokenMinterFcn(CID2[i], nftTokenId2.toString())
).getReceipt(client);
nftCollection2[i] = await tokenMinterFcn(
CID2[i],
nftTokenId2.toString()
);

console.log(
`Created NFT ${nftTokenId2.toString()} with serial: ${nftCollection2[
i
Expand Down Expand Up @@ -475,17 +476,18 @@ async function main() {

/**
* TOKEN MINTER FUNCTION
*
* @param {string} CID
* @param {string} nftTokenId
* @returns {Promise<import("./hts-nftP1-fee-create-mint-burn-associate-transfer").TransactionReceipt>}
*/
async function tokenMinterFcn(CID, nftTokenId) {
const mintTx = new TokenMintTransaction()
.setTokenId(nftTokenId)
.setMetadata([Buffer.from(CID)])
.freezeWith(client);
let mintTxSign = await mintTx.sign(operatorKey);
return await mintTxSign.execute(client);
let mintTxSubmit = await mintTxSign.execute(client);
return mintTxSubmit.getReceipt(client);
}
}

Expand Down
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"prettier": "^2.8.8",
"typedoc": "^0.23.28",
"typedoc": "^0.24.8",
"typescript": "^4.9.5"
}
}
22 changes: 11 additions & 11 deletions examples/pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion examples/react-native-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.72.4",
"react-native-web": "0.19.6"
"react-native-web": "0.19.8"
},
"devDependencies": {
"@babel/core": "^7.22.17",
Expand Down
Loading
Loading