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

What is the best way to store the bytecode of a logic sig in a smart contract application?

javier0rosas

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?

✔ Solved by fabrice in post #2
fabrice

One trick is the following:

  • Store the hash of the code only.
  • And then provide the actual code as an application call parameter.