Remove abbreviations from parameters (#1142)

* Add an initial document for our code style

* Remove abbreviations from parameters

* Rename the param in AddressUtils

* fix comment
This commit is contained in:
Leo Arias
2018-08-02 13:38:54 -06:00
committed by Nicolás Venturo
parent 7fdca7b025
commit f49721576f
10 changed files with 68 additions and 66 deletions

View File

@ -10,10 +10,10 @@ library AddressUtils {
* Returns whether the target address is a contract
* @dev This function will return false if invoked during the constructor of a contract,
* as the code is not actually created until after the constructor finishes.
* @param _addr address to check
* @param _account address of the account to check
* @return whether the target address is a contract
*/
function isContract(address _addr) internal view returns (bool) {
function isContract(address _account) internal view returns (bool) {
uint256 size;
// XXX Currently there is no better way to check if there is a contract in an address
// than to check the size of the code at that address.
@ -22,7 +22,7 @@ library AddressUtils {
// TODO Check this again before the Serenity release, because all addresses will be
// contracts then.
// solium-disable-next-line security/no-inline-assembly
assembly { size := extcodesize(_addr) }
assembly { size := extcodesize(_account) }
return size > 0;
}