solmate
solmate copied to clipboard
Test for ```testFromLast20Bytes``` in ```src/test/Bytes32AddressLib.t.sol``` looks incorrect
the test fails for
function fromLast20Byte(bytes32 bytesValue)
external
pure
returns (address _result)
{
assembly {
_result := shr(
96,
bytesValue
)
}
}
which should obviously pass, i took a look at the test and i could not understand it and it made no sense