@@ -4,7 +4,7 @@ import { nftToolbox } from "../../../index";
44
55// eslint-disable-next-line @typescript-eslint/no-unused-vars
66const account = JSON . parse (
7- readFileSync ( path . join ( __dirname , "account.json" ) ) . toString ( )
7+ readFileSync ( path . join ( __dirname , ".." , ".." , ".." , " account.json") ) . toString ( )
88) ;
99
1010nftToolbox . initEthereumCollection ( {
@@ -20,9 +20,12 @@ const uploadCollectionExample = async function () {
2020
2121const demoSingleNftImage = path . resolve (
2222 __dirname ,
23+ ".." ,
24+ ".." ,
25+ ".." ,
2326 "layers" ,
2427 "background" ,
25- "white.png"
28+ "white#5 .png"
2629) ;
2730const 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
8084uploadSingleExample ( ) ;
0 commit comments