In solidity 0.6.x, this will work.
bentoBox.deposit{value: value}(token, msg.sender, to, uint256(amount), uint256(share));
I can call other contract's function with value. How can I do this in solidity 0.5.6
When I compile, error comes out.
ParserError: Expected ';' but got '{'
Thank you