mirror of
https://github.com/d0zingcat/solana-agent-kit.git
synced 2026-05-17 07:36:45 +00:00
fix: Make recipient address mandatory in mintNFT action validation
This commit is contained in:
@@ -61,7 +61,7 @@ const mintNFTAction: Action = {
|
||||
collectionMint: z.string().min(32, "Invalid collection mint address"),
|
||||
name: z.string().min(1, "Name is required"),
|
||||
uri: z.string().url("URI must be a valid URL"),
|
||||
recipient: z.string().min(32, "Invalid recipient address").optional()
|
||||
recipient: z.string().min(32, "Invalid recipient address")
|
||||
}),
|
||||
handler: async (agent: SolanaAgentKit, input: Record<string, any>) => {
|
||||
const result = await mintCollectionNFT(
|
||||
|
||||
Reference in New Issue
Block a user