Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"code":-32603,"message":"execution reverted: Work in Progress","data":{"originalError":{"code":3,"data":"
what does it mean ? HELP
Sep 23, 2021, 3:00 PM
ArtItem memory artItem = _artItems[id];
return (id, artItem.price, artItem.tokenURI);
}
function purchaseArtItem(uint256 artItemId)
external
payable
stopInEmergency
artItemExist(artItemId)
{
ArtItem storage artItem = _artItems[artItemId];
require(msg.value >= artItem.price, "Your bid is too low");
_tokenIds++;
_safeMint(msg.sender, _tokenIds);
_setTokenURI(_tokenIds, artItem.tokenURI);
_asyncTransfer(artItem.seller, msg.value);
}
this is my contract function
return (id, artItem.price, artItem.tokenURI);
}
function purchaseArtItem(uint256 artItemId)
external
payable
stopInEmergency
artItemExist(artItemId)
{
ArtItem storage artItem = _artItems[artItemId];
require(msg.value >= artItem.price, "Your bid is too low");
_tokenIds++;
_safeMint(msg.sender, _tokenIds);
_setTokenURI(_tokenIds, artItem.tokenURI);
_asyncTransfer(artItem.seller, msg.value);
}
this is my contract function
Sep 23, 2021, 3:02 PM