Contract con_new_contract_testing_it_out


Contract Code


  
1 owner = Variable()
2
3 @construct
4 def seed():
5 owner.set(ctx.caller)
6
7
8 @export
9 def set_state(key: str, value: float):
10 assert ctx.caller == owner.get(), 'error'
11 return rt.env.get('Driver').driver.set(key, value)

Byte Code

e30000000000000000000000000400000040000000733000000065006400640164028d025a016403640484005a026503640083016504650564059c0264066407840483015a06640853002909da1f636f6e5f6e65775f636f6e74726163745f74657374696e675f69745f6f7574da056f776e65722902da08636f6e7472616374da046e616d65630000000000000000000000000200000043000000731000000074006a0174026a03830101006400530029014e2904da075f5f6f776e6572da03736574da03637478da0663616c6c6572a90072090000007209000000da00da045f5f5f5f0400000073020000000001720b0000002902da036b6579da0576616c7565630200000000000000020000000300000043000000732c00000074006a0174026a0383006b027316740464018301820174056a066a03640283016a076a087c007c018302530029034eda056572726f72da064472697665722909720700000072080000007205000000da03676574da0e417373657274696f6e4572726f72da027274da03656e76da0664726976657272060000002902720c000000720d00000072090000007209000000720a000000da097365745f73746174650800000073040000000002160172150000004e2907da085661726961626c657205000000720b000000da085f5f6578706f7274da03737472da05666c6f61747215000000720900000072090000007209000000720a000000da083c6d6f64756c653e0100000073060000000c0308040601