0

I am struggling to find how to send ether value through a smart contract on the version of solidity 0.4. I know by experience that we can use:

contract.deposit{value: 1 ether}();

from the version 0.6 and above but I can't really find its ancestor.

Thank you in advance.

1 Answer 1

2

For Solidity v0.4, below syntax should work:

contract.deposit.value(1 ether)();

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.