Add Prettier for linting and fix Solhint config (#2697)
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
@ -26,7 +26,7 @@ library Math {
|
||||
*/
|
||||
function average(uint256 a, uint256 b) internal pure returns (uint256) {
|
||||
// (a + b) / 2 can overflow, so we distribute.
|
||||
return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
|
||||
return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user