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.
That is a current limitation in Algorand. These limits are added to keep performance high. That said, this particular one is being addressed with a new feature that is being worked on now: https://github.com/algorand/go-algorand/pull/2157
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.