LimeChain / etherlime

Dapp Development framework based on ethers.js
MIT License
185 stars 41 forks source link

VM Exception using etherlime ganache #291

Open javaadpatel opened 5 years ago

javaadpatel commented 5 years ago

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 commented 5 years ago

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);
    }
}