Hey there, I am trying to list 3 nfts to opensea using seaport.js and the opensea conduit key. I used the first example for the request in the github repository of seaport.js. The error happens when i try to fullfill the order using the connected address as the accoundAddress.
Error:
MetaMask - RPC Error: execution reverted
Code:
const offerer = "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266";
const fulfiller = connectedWallet;
const { executeAllActions } = await seaport.createOrder(
{
offer: [
{
itemType: ItemType.ERC721,
token: "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e",
identifier: "1",
},
],
consideration: [
{
amount: ethers.utils.parseEther("10").toString(),
recipient: offerer,
},
],
},
offerer
);
const order = await executeAllActions();
const { executeAllActions: executeAllFulfillActions } =
await seaport.fulfillOrder({
order,
accountAddress: fullfiller,
});
const transaction = executeAllFulfillActions();