Skip to content

Commit

Permalink
Optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieraykatz committed Jun 25, 2024
1 parent ce68b5c commit 1c87f0c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/L2/ReverseRegistrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,10 @@ contract ReverseRegistrar is Ownable {
///
/// @param addr The address to check.
///
/// @return `true` if `extcodesize` > 0, else `false`.
function _isContract(address addr) internal view returns (bool) {
uint32 size;
/// @return result `true` if `extcodesize` > 0, else `false`.
function _isContract(address addr) internal view returns (bool result) {
assembly {
size := extcodesize(addr)
result := extcodesize(addr)
}
return size > 0;
}
}

0 comments on commit 1c87f0c

Please sign in to comment.