Test common case first (#2023)

pull/2031/head
William Entriken 5 years ago committed by Francisco Giordano
parent cf0e71b4ed
commit fbddf5ba5b
  1. 2
      contracts/utils/Address.sol

@ -29,7 +29,7 @@ library Address {
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly { codehash := extcodehash(account) }
return (codehash != 0x0 && codehash != accountHash);
return (codehash != accountHash && codehash != 0x0);
}
/**

Loading…
Cancel
Save