Contract con_sumas4


Contract Code


  
1 sumas = Hash()
2 total = Hash(default_value=0)
3
4 @export
5 def calculo(dato1: str, dato2: str, amount1: float, amount2: float):
6 sumas[dato1] = amount1
7 sumas[dato2] = amount2
8 total = sumas[dato1] + sumas[dato2]
9 return total
10
11 @export
12 def ver_valor():
13 return total
14
15
16

Byte Code

e30000000000000000000000000600000040000000734a00000065006400640164028d025a01650064036400640464058d035a02650364008301650465046505650564069c0464076408840483015a066503640083016409640a840083015a07640b5300290cda0a636f6e5f73756d617334da0573756d61732902da08636f6e7472616374da046e616d65e900000000da05746f74616c2903da0d64656661756c745f76616c7565720300000072040000002904da056461746f31da056461746f32da07616d6f756e7431da07616d6f756e743263040000000000000005000000030000004300000073240000007c0274007c003c007c0374007c013c0074007c00190074007c01190017007d047c04530029014e2901da075f5f73756d6173290572080000007209000000720a000000720b000000da075f5f746f74616ca900720e000000da00da0763616c63756c6f0500000073080000000002080108011001721000000063000000000000000000000000010000004300000073040000007400530029014e2901720d000000720e000000720e000000720e000000720f000000da097665725f76616c6f720d0000007302000000000272110000004e2908da0448617368720c000000720d000000da085f5f6578706f7274da03737472da05666c6f617472100000007211000000720e000000720e000000720e000000720f000000da083c6d6f64756c653e0100000073080000000c010e0306011607