Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

VM Exception using etherlime ganache #291

Open
javaadpatel opened this issue Oct 26, 2019 · 1 comment
Open

VM Exception using etherlime ganache #291

javaadpatel opened this issue Oct 26, 2019 · 1 comment

Comments

@javaadpatel
Copy link

Hi, I was wondering if there are any differences between the ethereum virtual machine that is run with etherlime ganache and any others? I am experiencing a wierd issue where my transactions are failing with Error: VM Exception while processing transaction: revert when running my tests but then when I test my contract using remix it works fine.

@ngmachado
Copy link

Im getting the same error.

I pin down to external contract call.

Tests with remix and truffle and works.

pragma solidity ^0.5.11;

contract test {

    uint256 public _test;

    function setTest(uint256 _amount) external {
        _test = _amount;
    }
}
pragma solidity ^0.5.11;

import "./test.sol";

contract caller {

    test public toCall;

    constructor(test _tocall) public {
        toCall = _tocall;
    }

    function set() external {
        toCall.setTest(10);
    }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants