1 |
Votes = Hash()
|
2 |
|
3 |
@construct
|
4 |
def seed():
|
5 |
Votes['address'] = []
|
6 |
|
7 |
@export
|
8 |
def prueba2():
|
9 |
for address in Votes['address']:
|
10 |
assert address == ctx.caller, 'You have voted'
|
11 |
Votes['address'] = Votes['address'] + [ctx.caller]
|
12 |
return Votes['address'] |
e30000000000000000000000000400000040000000732800000065006400640164028d025a016403640484005a0265036400830164056406840083015a04640753002908da16636f6e5f707275656261735f70726163746963615f33da05566f7465732902da08636f6e7472616374da046e616d65630000000000000000000000000300000043000000730c0000006700740064013c006400530029024eda07616464726573732901da075f5f566f746573a90072070000007207000000da00da045f5f5f5f040000007302000000000172090000006300000000000000000100000003000000430000007340000000782274006401190044005d167d007c0074016a026b02730a7403640283018201710a570074006401190074016a0267011700740064013c00740064011900530029034e72050000007a0e596f75206861766520766f74656429047206000000da03637478da0663616c6c6572da0e417373657274696f6e4572726f7229017205000000720700000072070000007208000000da077072756562613208000000730800000000020e0116011401720d0000004e2905da044861736872060000007209000000da085f5f6578706f7274720d0000007207000000720700000072070000007208000000da083c6d6f64756c653e0100000073040000000c030804