File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
web_app/Source_webapp/src
views/account/Settings/components Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ case $choice in
37
37
cd web_app/Source_webapp || { echo " Error: Failed to navigate to web_app directory." ; exit 1; }
38
38
39
39
echo " Installing new packages for web_app via npm..."
40
- if npm install; then
40
+ if npm install --legacy-peer-deps ; then
41
41
echo " Packages for web_app installed successfully."
42
42
else
43
43
echo " Error: Failed to install web_app packages."
Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ interface NFTMetadata {
10
10
}
11
11
12
12
export const uploadNFTToIPFS = async (
13
- metadata : NFTMetadata
13
+ metadata : NFTMetadata ,
14
+ nftStorageApiKey : string
14
15
) : Promise < string > => {
15
16
const client = new NFTStorage ( {
16
- token : '' ,
17
+ token : nftStorageApiKey ,
17
18
} )
18
19
19
20
try {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export default function SelectDeviceForNFT() {
64
64
value : device . hardwareVersion ,
65
65
} ,
66
66
] ,
67
- } )
67
+ } , process . env . VITE_NFT_STORAGE_API_KEY || '' )
68
68
69
69
// Step 3: Create NFT with metadata URL
70
70
const result = await CreateDeviceNFT (
You can’t perform that action at this time.
0 commit comments