Im getting an error when I try to deply a sc, here it is:

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": "gas required exceeds allowance (30000000) or always failing transaction" }

Any idea? Im doing proves in testnet

Apr 7, 2021, 5:29 PM
BSC?
Apr 7, 2021, 5:33 PM
Yes sir
Apr 7, 2021, 5:36 PM
Reverts the transaction somewhere. Check your require statements. Always add message param
Or maybe some sh happend in migrations
Apr 7, 2021, 6:10 PM
Ok, thanks I gonna try
Can I dm you?
Apr 7, 2021, 6:16 PM
Fcourse
Apr 7, 2021, 6:17 PM
Your contract size is too big... reduce your compiler optimizer run
Apr 7, 2021, 9:04 PM
This could be an endless for()- or other loop. Just recently had that. Or you really use too much gas and need to increase the gas limit.
Apr 7, 2021, 9:44 PM
It was a noob issue, I was using mainnet router address instead testnet
Apr 7, 2021, 10:00 PM

© 2024 Draquery.com All rights reserved.