Skip to content

Consider increasing maxTealSourceBytes in /v2/teal/compile #4632

@fergalwalsh

Description

@fergalwalsh

Problem

There is a limit on the byte size of a teal program that can be compiled with the teal/compile endpoint. I have run into that limit with a teal program that has a decent amount of comments. Normally I'd strip the comments before submitting to the compile endpoint but I'd like to take advantage of the source maps functionality that is now builtin.

const maxTealSourceBytes = 1e5

I am aware I can compile without this limit with goal but for some use cases compiling through a node is more convenient.

Solution

If there is room for a higher safe value it would be nice to increase the limit to such a value.

Dependencies

None

Urgency

There are other solutions so not particularly urgent at the moment.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions