library LibSpenderRichErrors {

    // solhint-disable func-name-mixedcase

    function SpenderERC20TransferFromFailedError(
        address token,
        address owner,
        address to,
        uint256 amount,
        bytes memory errorData
    )
        internal
        pure
        returns (bytes memory)
    {
        return abi.encodeWithSelector(
            bytes4(keccak256("SpenderERC20TransferFromFailedError(address,address,address,uint256,bytes)")),
            token,
            owner,
            to,
            amount,
            errorData
        );
    }
}
function SpenderERC20TransferFromFailedError(
    address token,
    address owner,
    address to,
    uint256 amount,
    bytes memory errorData
)
    internal
    pure
    returns (bytes memory)
{
    return abi.encodeWithSelector(
        bytes4(keccak256("SpenderERC20TransferFromFailedError(address,address,address,uint256,bytes)")),
        token,
        owner,
        to,
        amount,
        errorData
    );
}

// solhint-disable func-name-mixedcase