I have created a private blockchain using geth
. I also have a contract in which there is a function which call another function it third contract to set an address. I can call this function on Local blockchains like testRPC and Ganache blockchain, Even it works in TestNet. But Once I setup the private blockchain using (geth
). 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?
gas required exceeds allowance or always failing transaction
I have enough ETH in the caller account and also
- I have enough ETH in the caller account and also
- GasLimit is high enough
- The functions does not have any loop or fancy operation, setting an address and some condition checks
- The node is an Ubuntu 16.04
- geth -v --> 1.8.12-stable
// in contract 1 function func(address addr) public returns (bool result) { Cantract2 c = Cantract2(addr); if (!c.setAddress(..)) { return false; } ..... return true; }