-
Notifications
You must be signed in to change notification settings - Fork 182
Description
Thanks for this library, it looks very promising (esp. with support of ethers and different networks like Polygon) which are missing in OpenSea.js SDK.
I am trying to use this to create sellorder/listings in bulk for a ERC721 contract. Though the transaction succeeds, there is no sale listing created for the said item on OpenSea.
But if I follow the create Order with fullfill orders (as in sample), the sale is reflected in OpenSea and I can see Transfer of the token between offerrer and fulfiller.
Chain: Polygon Mumbai
Contract: ERC721 - deployed and items minted already
-------------------------- code snippet for brevity --------------------------
const { executeAllActions } = await seaport.createOrder(
{
offer: [
{
itemType: ItemType.ERC721,
token: deployment.address,
identifier: "1",
}
],
consideration: [
{
amount: ethers.utils.parseEther("0.040").toString(),
recipient: offerer,
}
],
}
);
const order: OrderWithCounter = await executeAllActions();
// this part also works well, the token sale is reflected on Open Sea
/*const { executeAllActions: executeFullfillActions} =
await seaport.fulfillOrder({
order,
accountAddress:fulfiller,
});
const txn = await executeFullfillActions();
console.log(`transaction hash:${txn.hash}`);*/
// this goes through, I can see the transaction on polygonscan, but the sale listing is not created on OpenSea
const txmethod = await seaport.validate([order]);
await txmethod.buildTransaction()
const tx = await txmethod.transact();
console.log(`Transaction Hash:${tx.hash}`);
await tx.wait();