Contract con_time_test


Contract Code

1 saved_now = Variable()
2
3 @construct
4 def init():
5 saved_now.set(now)
6
7 @export
8 def timedelta_from_creation():
9 return saved_now.get() > datetime.timedelta(minutes=2)
10

Byte Code

e30000000000000000000000000400000040000000732800000065006400640164028d025a016403640484005a0265036400830164056406840083015a04640753002908da0d636f6e5f74696d655f74657374da0973617665645f6e6f772902da08636f6e7472616374da046e616d65630000000000000000000000000200000043000000730e00000074006a017402830101006400530029014e2903da0b5f5f73617665645f6e6f77da03736574da036e6f77a90072080000007208000000da00da045f5f5f5f0400000073020000000001720a000000630000000000000000000000000400000043000000731400000074006a01830074026a03640164028d016b04530029034ee9020000002901da076d696e7574657329047205000000da03676574da086461746574696d65da0974696d6564656c74617208000000720800000072080000007209000000da1774696d6564656c74615f66726f6d5f6372656174696f6e080000007302000000000272100000004e2905da085661726961626c657205000000720a000000da085f5f6578706f727472100000007208000000720800000072080000007209000000da083c6d6f64756c653e0100000073040000000c030804