- I am building a smart contract with the code of approval program around 40KB. The server is giving me the error of reaching the max size, and the error screenshot is listed below.
This error information is kind of confusing to me. I would like to know whether the problem is the size of the program code is too large, or the stack of the smart contract is overflowed.
- Suppose one global state records 0 as its initial value.
There is one call application transaction, where this transaction first write value 1 into the global state, then read this global state, then write another value 2 into this global state. I am wondering about the value read from the gloabl state in the middle. What should be the value returning in reading, 0 or 1 or 2?