Skip to content
On this page

Custom targets

A custom target is similar to a test or a compilation target but associated with another custom kind (a free form string).

@sp.add_target(name, kind) → 

Example

python
@sp.add_target(name = "orig", kind = "origination")
def origin():
    scenario = sp.test_scenario()
    c1 = MyContract(x=12)
    scenario += c1