Skip to content

Commit 3232f12

Browse files
committed
Updated the code
1 parent 6672779 commit 3232f12

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"homepage": "https://github.com/scorelab/NFT-Toolbox#readme",
2020
"devDependencies": {
21-
"@pinata/sdk": "^1.1.26",
21+
"@pinata/sdk": "^1.2.1",
2222
"@types/chai": "^4.3.1",
2323
"@types/chai-as-promised": "^7.1.5",
2424
"@types/mime": "^3.0.1",

src/chains/Ethereum/functions/uploadEthereum.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { nftToolbox } from "../../../index";
44

55
// eslint-disable-next-line @typescript-eslint/no-unused-vars
66
const account = JSON.parse(
7-
readFileSync(path.join(__dirname, "account.json")).toString()
7+
readFileSync(path.join(__dirname, "..", "..", "..","account.json")).toString()
88
);
99

1010
nftToolbox.initEthereumCollection({
@@ -20,9 +20,12 @@ const uploadCollectionExample = async function () {
2020

2121
const demoSingleNftImage = path.resolve(
2222
__dirname,
23+
"..",
24+
"..",
25+
"..",
2326
"layers",
2427
"background",
25-
"white.png"
28+
"white#5.png"
2629
);
2730
const demoSingleNftMetadata = {
2831
name: "Demo Single NFT",
@@ -44,11 +47,12 @@ const uploadSingleExample = async function () {
4447

4548
//////////////////////// Select ONE File Storage Platform ////////////////////////
4649

47-
// nftToolbox.initFileStorageService({
48-
// service: "pinata",
49-
// key: account.PINATA_KEY,
50-
// secret: account.PINATA_SECURITY,
51-
// });
50+
nftToolbox.initFileStorageService({
51+
service: "pinata",
52+
key: "d73c7f3c2620581dc7e1",
53+
secret: "6c11fbb74a22fd6ff235fbfa8641dde8c3eb4efffa73d30ca7cdf71e649dd0d6",
54+
});
55+
5256

5357
// nftToolbox.initFileStorageService({
5458
// service: "nft.storage",
@@ -75,6 +79,6 @@ const uploadSingleExample = async function () {
7579

7680
//////////////////////////////////////////////////////////////////////////////////
7781

78-
uploadCollectionExample();
82+
// uploadCollectionExample();
7983

8084
uploadSingleExample();

0 commit comments

Comments
 (0)