You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i've success to buy nft on testnet with smart contract before update seaport 1.5. But now is different..
First time i'm fetch order parameters with api with this url that: "https://testnets-api.opensea.io/v2/listings/fulfillment_data"
With response i create parameters payload looks like this: { considerationToken: '0x0000000000000000000000000000000000000000', considerationIdentifier: '0', considerationAmount: '486525000000000', offerer: '0xb5eac305a373fad184dad2388aa9cfc0aa4fdc54', zone: '0x004c00500000ad104d7dbd00e3ae0a5c00560c00', offerToken: '0x05a0b0985ba3b7bd9ade8a7478caa2fa4fda24e5', offerIdentifier: '7', offerAmount: '1', basicOrderType: 0, startTime: '1684097720', endTime: '1686776120', zoneHash: '0x0000000000000000000000000000000000000000000000000000000000000000', salt: '24446860302761739304752683030156737591518664810215442929800724976339279725817', offererConduitKey: '0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000', fulfillerConduitKey: '0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000', totalOriginalAdditionalRecipients: '1', additionalRecipients: [ { amount: '12475000000000', recipient: '0x0000a26b00c1f0df003000390027140000faa719' } ], signature: '0x623a85b78d509a49eedfdbf121c2b355df8f347c4a58b51c39a802689d64216548a8c0c49647731be725fe808f68a72df0c4b16e81aff4ad382043491ccbbaf4' }
I encoding all parameters with "encodeParameter" and copy this encoding and past to smart contract:
` function buyErc721Opensea(bytes memory _params) public payable {
ParamsOpensea memory orderParams = abi.decode(_params, (ParamsOpensea));
SeaportInterface(0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC)
.fulfillBasicOrder{value: msg.value}(order);
}`
i defined wei price to buy nft for function payable. When i execute this function remix ide give this gas estimation error:
" Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Returned error: {"jsonrpc":"2.0","error":"execution reverted","id":989527993897544}"
when i buy this nft on opensea UI and i seen parameter function on etherscan, i have exactly the same parameters...
Does anyone have a solution ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i've success to buy nft on testnet with smart contract before update seaport 1.5. But now is different..
First time i'm fetch order parameters with api with this url that: "https://testnets-api.opensea.io/v2/listings/fulfillment_data"
With response i create parameters payload looks like this:
{ considerationToken: '0x0000000000000000000000000000000000000000', considerationIdentifier: '0', considerationAmount: '486525000000000', offerer: '0xb5eac305a373fad184dad2388aa9cfc0aa4fdc54', zone: '0x004c00500000ad104d7dbd00e3ae0a5c00560c00', offerToken: '0x05a0b0985ba3b7bd9ade8a7478caa2fa4fda24e5', offerIdentifier: '7', offerAmount: '1', basicOrderType: 0, startTime: '1684097720', endTime: '1686776120', zoneHash: '0x0000000000000000000000000000000000000000000000000000000000000000', salt: '24446860302761739304752683030156737591518664810215442929800724976339279725817', offererConduitKey: '0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000', fulfillerConduitKey: '0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000', totalOriginalAdditionalRecipients: '1', additionalRecipients: [ { amount: '12475000000000', recipient: '0x0000a26b00c1f0df003000390027140000faa719' } ], signature: '0x623a85b78d509a49eedfdbf121c2b355df8f347c4a58b51c39a802689d64216548a8c0c49647731be725fe808f68a72df0c4b16e81aff4ad382043491ccbbaf4' }
I encoding all parameters with "encodeParameter" and copy this encoding and past to smart contract:
` function buyErc721Opensea(bytes memory _params) public payable {
ParamsOpensea memory orderParams = abi.decode(_params, (ParamsOpensea));
SeaportInterface(0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC)
.fulfillBasicOrder{value: msg.value}(order);
}`
i defined wei price to buy nft for function payable. When i execute this function remix ide give this gas estimation error:
" Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Returned error: {"jsonrpc":"2.0","error":"execution reverted","id":989527993897544}"
when i buy this nft on opensea UI and i seen parameter function on etherscan, i have exactly the same parameters...
Does anyone have a solution ?
Beta Was this translation helpful? Give feedback.
All reactions