XinFinOrg / XDPoSChain

Customer centric, Hybrid & Interoperable XinFin Network
https://www.xinfin.org
GNU Lesser General Public License v3.0
50 stars 59 forks source link

Getting "Gas estimation failed" error, while deploying smart contract on XDC Apothem network. #591

Open vrushalipanchal opened 1 month ago

vrushalipanchal commented 1 month ago

Hello Team,

I am encountering a "Gas estimation failed" error while deploying a smart contract on the XDC Apothem network.

Details:

Error: Gas estimation failed Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Error happened while trying to execute a function inside a smart contract Eip838ExecutionError: execution reverted

Refer the screenshot: image

Please look into this issue.

Thank you.

gzliudan commented 1 month ago

Could you please share the contract code ? And which solidity version are you using when deploy ?

JukLee0ira commented 1 month ago

The issue might be caused by the Solidity version. Try using version 0.8.19.