Skip to content

Commit 43a5708

Browse files
committed
fix
1 parent 73a243a commit 43a5708

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

typescript/packages/plugins/solana-magiceden/src/methods/buyListing.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ export async function buyListing(
1717
buyer: walletClient.getAddress(),
1818
seller: nftInfo.seller,
1919
tokenMint: parameters.mintHash,
20-
tokenATA: nftInfo.pdaAddress,
20+
tokenATA: nftInfo.tokenAddress,
2121
price: nftInfo.price.toString(),
22+
...(nftInfo.auctionHouse ? { auctionHouseAddress: nftInfo.auctionHouse } : {}),
2223
});
2324

2425
let data: z.infer<typeof getBuyListingTransactionResponseSchema>;

typescript/packages/plugins/solana-magiceden/src/parameters.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const getNftInfoResponseSchema = z.array(
88
z.object({
99
pdaAddress: z.string(),
1010
auctionHouse: z.string().optional(),
11-
tokenAddress: z.string().optional(),
11+
tokenAddress: z.string(),
1212
tokenMint: z.string().optional(),
1313
seller: z.string(),
1414
sellerReferral: z.string().optional(),

0 commit comments

Comments
 (0)