I've seen many functions using a returns (bool). What does it do? What can it be used for?
function transferFrom(address from, address to, uint256 value) public returns (bool);
solidity
I've seen many functions using a returns (bool). What does it do? What can it be used for?
function transferFrom(address from, address to, uint256 value) public returns (bool);
Best Answer
It returns a boolean value, ie true or false.
Assuming you are reading from a token spec, that transferFrom function most likely should return true if the transfer is made successfully, and false if it fails.