Seaport giving an error when listing the nfts

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();
1 Like

Hi @marksSweden ,

Is there any more text parts to the error that get included, like a code? Or simply only the text you shared.

Thanks!

1 Like

Hello!

Have you defined the current web3Provider correctly?

Perhaps the variable fulfiller is equal to undefined when the function is started. Can you check it in the debugger or by simple output to the console?

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.