我自己写过一个createOrder并且fulFillOrder的代码,但是如果conduitKey是opensea的conduitKey的话("0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000"),在fulFillOrder的时候合约就会报错。 但是如果conduitKey=0,就可以正常fulFill。
请帮忙写一个conduitKey是opensea的conduit的情况下,还可以正常fulFillOrder的简单的例子。
我的代码如下: createOrder:
const { executeAllActions } = await seaport.createOrder(
{
conduitKey: "0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000",
zone: "0x004C00500000aD104D7DBd00e3ae0A5C00560C00",
startTime: "1661790956",
endTime: "115792089237316195423570985008687907853269984665640564039457584007913129639935",
offer: offer,
consideration: consideration
},
currentAddress
);
const order = await executeAllActions();
fulfillOrder:
const { executeAllActions } = await seaport.fulfillOrder({
order: order,
accountAddress: currentAddress,
conduitKey: "0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000"
});
const transaction = executeAllActions();