Contract con_jeuguito


Contract Code


  
1 balance_1 = Hash()
2 balance_2 = Hash()
3 random.seed()
4
5
6 @construct
7 def choice_player_1():
8 balance_1[ctx.caller] = random.randint(1, 10)
9 balance_2[ctx.caller] = random.randint(1, 10)
10
11 @export
12 def choice_player_1(wallet_id: str):
13 return str(balances_1[wallet_id])
14
15 @export
16 def choice_player_2(wallet_id: str):
17 return str(balances_2[wallet_id])
18

Byte Code

e30000000000000000000000000400000040000000735800000065006400640164028d025a0165006400640364028d025a0265036a04830001006404640584005a05650664008301650764069c0164076408840483015a08650664008301650764069c016409640a840483015a09640b5300290cda0c636f6e5f6a6575677569746fda0962616c616e63655f312902da08636f6e7472616374da046e616d65da0962616c616e63655f32630000000000000000000000000300000043000000732800000074006a01640164028302740274036a043c0074006a01640164028302740574036a043c006400530029034ee901000000e90a0000002906da0672616e646f6dda0772616e64696e74da0b5f5f62616c616e63655f31da03637478da0663616c6c6572da0b5f5f62616c616e63655f32a900720e000000720e000000da00da045f5f5f5f0600000073040000000001120172100000002901da0977616c6c65745f6964630100000000000000010000000300000043000000730c000000740074017c0019008301530029014e2902da03737472da0a62616c616e6365735f3129017211000000720e000000720e000000720f000000da0f63686f6963655f706c617965725f310b000000730200000000027214000000630100000000000000010000000300000043000000730c000000740074017c0019008301530029014e29027212000000da0a62616c616e6365735f3229017211000000720e000000720e000000720f000000da0f63686f6963655f706c617965725f32100000007302000000000272160000004e290ada0448617368720a000000720d0000007208000000da04736565647210000000da085f5f6578706f7274721200000072140000007216000000720e000000720e000000720e000000720f000000da083c6d6f64756c653e01000000730e0000000c010c0108030805060110040601