solmate icon indicating copy to clipboard operation
solmate copied to clipboard

Test for ```testFromLast20Bytes``` in ```src/test/Bytes32AddressLib.t.sol``` looks incorrect

Open malik672 opened this issue 1 year ago • 0 comments

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

malik672 avatar Oct 14 '23 20:10 malik672