1import smartpy as sp
2
3
4@sp.module
5def main():
6 class A(sp.Contract):
7 @sp.entrypoint
8 def f(self, x):
9 sp.trace(x * 2)
10 sp.trace("double")
11
12
13@sp.add_test()
14def test():
15 scenario = sp.test_scenario("Trace", main)
16 c1 = main.A()
17 scenario += c1
18 c1.f(12)