Require or revert statement must have a reason string and check that each reason string is at most N characters long.
pragma solidity 0.4.4;
contract A {
function b() public {
require(!has(role, account));
role.bearer[account] = true;
role.bearer[account] = true;
}
}
pragma solidity 0.4.4;
contract A {
function b() public {
require(!has(role, account), "Roles: account already has role");
role.bearer[account] = true;
role.bearer[account] = true;
}
}
reason-string on Solhint's documentation.