This forum is a read-only archive. Posting, replying and signing in are disabled.

Invalid : approval program too long. max len 1024 bytes

humblefool

I’m getting this error while creating an application.
I would like to understand why there is a limitation on the approval program ?
is there any workaround for this ?

I’m writing an approval program length which is more than 1024 bytes.

With this limitation, i cannot proceed further.

edited
humblefool

Thanks jason.
When can we expect this change to be available on mainnet or betanet ?

How come no other application have this problem ? just wanted to confirm if i’m doing something wrong which is causing more byte size

JasonW

That is the compiled byte size of the program. You can get around this by splitting contracts and linking them with an additional transaction in some cases. Hopefully, this change will be available over the summer.