HashLips/frontend_base_dapp

Can't deploy to polygon through remix - Gas estimation failed

GustasKlisauskas opened this issue · 0 comments

Hi, I'm following this tutorial: https://youtu.be/U4a_-WCtjYY
30:00 When transacting the smart contract to blockchain I get this error:

Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
Internal JSON-RPC error. { "code": -32000, "message": "execution reverted" }

Forcing it and accepting with metamask just results in a failed transaction. What can I change to fix it?

Here is a failed transaction: https://polygonscan.com/tx/0x7528036c32ea5b32377fb241aa0c3447fde76b9041b288e2952c467cdc14fa9a