solidity-ide icon indicating copy to clipboard operation
solidity-ide copied to clipboard

Not possible to specify gas/value for operation calls

Open andreasmuelder opened this issue 6 years ago • 0 comments

It is not possible to specify gas/value for operation calls:

contract AbstractB {
    function getX() returns(uint) {
        return 3;
    }
}
contract A {
    function makeCall(address addressB) {
         AbstractB(addressB).getX.value(1 ether).gas(0); // Error can not find value
         AbstractB(addressB).getX.gas(1000)(); // Error can not find gas
    }
}

andreasmuelder avatar Oct 12 '18 08:10 andreasmuelder