"Cannot read property 'token_address' of undefined" on Opensea plugin's createSellOrder

Hi guys, i am facing an issue when calling createSellOrder function define by Moralisā€™s Openseaā€™s plugin.
anyone have idea where i am doing wrong? is my contract address and owner address mismatch? because as opensea, i (0x81bbF6d5B299AE8De54AB0F819Cd02A08b8968ec) am the owner of this (0x04F08F734F60426148187517690448F3B453836C) tokenā€¦
0x04F08F734F60426148187517690448F3B453836C

my code :-
await Moralis.Plugins.opensea.createSellOrder({
network: ā€˜testnetā€™,
tokenAddress: contract_address, //0x04F08F734F60426148187517690448F3B453836C
tokenId: token_id, //1
tokenType: ā€˜ERC721ā€™,
userAddress: user.get(ā€˜ethAddressā€™),//0x81bbF6d5B299AE8De54AB0F819Cd02A08b8968ec
startAmount: 1,
endAmount: 1,
//expirationTime: expirationTime, //Only set if you startAmount > endAmount
}).then((res)=>{
console.log(ā€œResponseā€, res);
});

Authenticate and enableWeb3 i already done ā€¦that i have not copied hereā€¦

Hi, in that print screen I see a ā€œtokenAddressā€ that starts with 0x4Ab that is not 0x04F08F734F60426148187517690448F3B453836C

1 Like

sorry by mistake i had uplaoded wrong image, but same errorā€¦

@cryptokid? waiting for response by moralis teamā€¦

Can you paste for what parameters you get that error now?

Hi @ntsh.vicky

I am investigating the issue. Will keep you posted.

Request Payload in above code

Response

A fix has been pushed.
Update the plugin to v 0.0.87 and try again.

Keep us posted.

1 Like

@dani @cryptokidā€¦Thnaks its working nowā€¦ I had to use weth contract address on payment token address

2 Likes