opensea-js
opensea-js copied to clipboard
Invalid number of arguments to Solidity function fulfillOrder
Hello, I am trying to use the fulfill order function. However i am getting the error:
return new Error('Invalid number of arguments to Solidity function');
^
Error: Invalid number of arguments to Solidity function```
I am trying to use this with a custom order object, the way i am calling it is:
```js
....
var collection = "cyberkongz-vx"
var contractAddr = "0x7ea3cca10668b8346aec0bf1844a49e995527c8b"
var tid = 5119
....
const order = {
"asset": assetData,
"metadata": {
"asset": {
"id": `${tid}`,
"address": `${contractAddr}`
},
"schema": "ERC721"
},
"makerAccount": {
"assetType": {
"assetClass": "ERC721",
"contract": "0x7ea3cca10668b8346aec0bf1844a49e995527c8b",
"tokenId": "5119"
},
"value": "1",
"valueDecimal": 1
},
"takerAccount": {
"assetType": {
"assetClass": "ETH"
},
"value": "2200000000000000000",
"valueDecimal": 2.2
},
"target":contractAddr,
"maker": "0xec6aed0666cd79df723134c1caeb80205790e234",
"taker":accountAdrr,
"dataType": "OPEN_SEA_V1_DATA_V1",
"exchange": "0x7be8076f4ea4a4ad08075c2508e481d6c946d12b",
"makerRelayerFee": "750",
"takerRelayerFee": "0",
"makerProtocolFee": "0",
"takerProtocolFee": "0",
"makerReferrerFee":"0",
"feeRecipient": "0x5b3256965e7c3cf26e11fcaf296dfc8807c01073",
"feeMethod": "1",
"side": "1",
"saleKind": "0",
"howToCall": "0",
"callData": "0x23b872dd000000000000000000000000ec6aed0666cd79df723134c1caeb80205790e234000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013ff",
"replacementPattern": "0x000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000",
"staticTarget": "0x0000000000000000000000000000000000000000",
"staticExtraData": "0x",
"extra": "0",
"paymentToken": "0x0000000000000000000000000000000000000000",
"basePrice":"2200000000000000000",
"currentBounty": "2200000000000000000",
"quantity":"1",
"cancelledOrFinalized": false,
"markedInvalid":false,
"assetBundle": null,
"salt":"0x0666c8cf7dca823e3ab2e0357371576eff094f1ba798c3e0e037636055fbc139",
"hash":"0x692e48c4038bdfa6f55823b65f56470908773a49b610815beea7a68601b94160",
}
const accountAddress = "redacted" // The buyer's wallet address, also the taker
const transactionHash = await seaport.fulfillOrder({ order, accountAddress})
I have been scratching my head at this for a while, anyone know a potential fix?
Try updating to the latest stable web3 and truffle versions. If you are still having this issue try deleting the build folder and re-compiling.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.