Closed anandamarsh closed 5 years ago
Thanks @anandamarsh for this detailed issue. It looks like this is related to https://github.com/trufflesuite/ganache/issues/788, so I'm just linking these together now.
Thanks David. If this is happening with everyone (unable to call one contract from another), then it’s a serious impediment, and should be given a higher priority. If this is a version incompatibility type issue, we can perhaps leave it on a medium priority. For myself, I am currently manoeuvring by routing these inter-contract calls through my Dapp for development purposes.
I am facing the same problem :(
Yeah I just turned away from Ganache. Used Roosten test network directly.
On Tue, 19 Feb 2019 at 5:17 am, fbalwy notifications@github.com wrote:
I am facing the same problem :(
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/trufflesuite/ganache-core/issues/242#issuecomment-464833738, or mute the thread https://github.com/notifications/unsubscribe-auth/AJzPf9rTz1z0UCwn33K9TE_ySU-vujQ2ks5vOu5GgaJpZM4Y_rzk .
@fbalwy, @anandamarsh this is caused by an out of gas error within the call to the nested contract (which bubbles up to the initial contract call and gets treated as a revert) and we are very close to releasing a beta with a fix for it. PR is here: https://github.com/trufflesuite/ganache-core/pull/292
It's been 25 days since labeling this issue as priority-high. Any news about releasing a beta with a fix for this issue?
@fbalwy I'll finally be releasing the beta on Monday!
This should now be fixed in the latest beta tagged releases of ganache-cli and ganache-core.
This fix involved pretty significant code changes; check out the release notes for details.
We'd love it if you'd test this beta out to make sure things are good to go before we release to stable.
If you using ganache-cli
, run:
npm install -g ganache-cli@beta
If you are using ganache-core
, run:
npm install ganache-core@beta
Let us know if you discover any bugs with this new beta release! Thanks!
I have an innocent looking contracts that work painlessly in Remix. Test contract can easily call Another if I use JavaScript VM in Remix.
I also have ganache-cli running on port 7454. If I connect Remix to ganache-cli, each of these contracts work well individually. But I cant call Another from Test. Remix console says
transact to Test.send errored: VM Exception while processing transaction: revert
My contracts look like:
Expected Behavior
The contract works as is in JavaScript VM and Ropsten (with Metamask) as expected. Also, individual contacts work with ganache-cli. Just calling one contract from another doesnt seem to work.
Current Behavior
transact to Test.send errored: VM Exception while processing transaction: revert
Possible Solution
NA
Steps to Reproduce (for bugs)
send()
with address of Another contractYour Environment