Add compilation targets to new syntax

Can we add compilation targets in the new syntax as we did in the legacy?
If yes, how? As it gives an error when I tried doing it like the legacy method.

Support for “compilation targets” has been removed, as they added little value. Instead you can use a trivial scenario, like so:

s = sp.test_scenario()
s += main.MyContract()

You will find the Michelson output in step_001_cont_0_contract.tz.

Hello

  • Ensure that your SmartPy version is up-to-date, as some features may be refined in newer releases.
  • Review the updated documentation or examples provided in the new syntax—these often contain the new methods for setting compilation targets.

Thank you :slightly_smiling_face: