Test common case first (#2023)

This commit is contained in:
William Entriken
2019-12-16 14:21:06 -05:00
committed by Francisco Giordano
parent cf0e71b4ed
commit fbddf5ba5b

View File

@ -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);
}
/**