Can someone explain how I will be successfully able to return this

function reddish(uint256 _red) public view returns (bytes memory) {
    bytes memory err = abi.encode(msg.sender, _red);
    assembly {
        return(add(err, 32), mload(err))

1 Answer 1


i've found the answer to the question https://twitter.com/AmadiMichaels/status/1619284675146686464?s=20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.