I need to store the bytecode of a logic sig in a stateful smart contract. This bytecode is probably going to take up a good amount of memory. Is the best way to do it to just hardcode the long string of bytes in the contract?
One trick is the following:
- Store the hash of the code only.
- And then provide the actual code as an application call parameter.