Skip to content

Commit 257d3e4

Browse files
committed
fix: Expected an assignment or function call and instead saw an expression
1 parent 3066584 commit 257d3e4

File tree

1 file changed

+7
-7
lines changed
  • packages/plugin-solana/src/actions

1 file changed

+7
-7
lines changed

packages/plugin-solana/src/actions/fomo.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ const promptConfirmation = async (): Promise<boolean> => {
363363
};
364364

365365
// Save the base64 data to a file
366-
import * as fs from "fs";
367-
import * as path from "path";
366+
// import * as fs from "fs";
367+
// import * as path from "path";
368368

369369
const fomoTemplate = `Respond with a JSON markdown block containing only the extracted values. Use null for any values that cannot be determined.
370370
@@ -477,20 +477,20 @@ export default {
477477
const imageBuffer = Buffer.from(imageResult.data[0], "base64");
478478
const formData = new FormData();
479479
const blob = new Blob([imageBuffer], { type: "image/png" });
480-
formData.append("file", blob, `${tokenMetadata.name}.png`),
481-
formData.append("name", tokenMetadata.name),
482-
formData.append("symbol", tokenMetadata.symbol),
480+
formData.append("file", blob, `${tokenMetadata.name}.png`);
481+
formData.append("name", tokenMetadata.name);
482+
formData.append("symbol", tokenMetadata.symbol);
483483
formData.append("description", tokenMetadata.description);
484484

485485
const metadataResponse = await fetch("https://pump.fun/api/ipfs", {
486486
method: "POST",
487487
body: formData,
488488
});
489-
const metadataResponseJSON = await metadataResponse.json() as {
489+
const metadataResponseJSON = (await metadataResponse.json()) as {
490490
name: string;
491491
symbol: string;
492492
metadataUri: string;
493-
};
493+
};
494494
// Add the default decimals and convert file to Blob
495495
const fullTokenMetadata: CreateTokenMetadata = {
496496
name: tokenMetadata.name,

0 commit comments

Comments
 (0)