Replies: 1 comment 1 reply
-
"cannot estimate gas" is a generic error that the tx will revert. i suggest adding a manual gasLimit of like 300_000 gas and seeing if it returns a proper error, which you can query the 4 byte code with https://openchain.xyz/signatures to see what it could be. tenderly can help as well to simulate to find the trace of the error. your code sample is not complete enough to know what is going wrong, as you haven't defined |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to build a function that can
Listing an ERC-721 and fulfilling it
andMaking an offer and fulfilling it
.Env: polygon Mumbai testnet
It's successful when I list an ERC721 and fulfilling the order.
But I got an error when I called
seaport.fulfillOrder
to fulfill an offer.error:
Uncaught (in promise) Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="execution reverted", method="estimateGas", transaction={"from":"0xeeEFbDFa58878e73ac087325a41EdFdf12eF4dbd","to":"0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC","value":{"type":"BigNumber","hex":"0xe8d4a51000"},"data":"0xb3a34c4c0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
my code for making an offer and fulfilling the order
make an offer:
fulfill the order:
Does anyone have any idea where is the problem? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions