Skip to content

Commit

Permalink
update isCreateAndBuyContent
Browse files Browse the repository at this point in the history
Signed-off-by: MarcoMandar <malicemandar@gmail.com>
  • Loading branch information
MarcoMandar committed Oct 26, 2024
1 parent a236d54 commit bda7386
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/actions/pumpfun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,16 @@ export function isCreateAndBuyContent(
content: any
): content is CreateAndBuyContent {
return (
(typeof content.deployerPrivateKey === "string" &&
typeof content.tokenMetadata === "object" &&
typeof content.buyAmountSol === "string") ||
(typeof content.buyAmountSol === "number" &&
typeof content.priorityFee === "number" &&
typeof content.allowOffCurve === "boolean")
typeof content.deployerPrivateKey === "string" &&
typeof content.tokenMetadata === "object" &&
content.tokenMetadata !== null &&
(typeof content.buyAmountSol === "string" ||
typeof content.buyAmountSol === "number") &&
typeof content.priorityFee === "object" &&
content.priorityFee !== null &&
typeof content.priorityFee.unitLimit === "number" &&
typeof content.priorityFee.unitPrice === "number" &&
typeof content.allowOffCurve === "boolean"
);
}

Expand Down

1 comment on commit bda7386

@0xPhysis
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already deployed?

Please sign in to comment.