Contract con_suma3


Contract Code


  
1 sumas = Hash(default_value=0)
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

e30000000000000000000000000600000040000000734c000000650064006401640264038d035a01650064006401640464038d035a02650364018301650465046505650564059c0464066407840483015a0665036401830164086409840083015a07640a5300290be900000000da09636f6e5f73756d6133da0573756d61732903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d65da05746f74616c2904da056461746f31da056461746f32da07616d6f756e7431da07616d6f756e7432630400000000000000050000000400000043000000733400000074007c00050019007c02370003003c0074007c01050019007c03370003003c0074007c00190074007c01190017007d047c04530029014e2901da075f5f73756d6173290572080000007209000000720a000000720b000000da075f5f746f74616ca900720e000000da00da0763616c63756c6f0500000073080000000002100110011001721000000063000000000000000000000000010000004300000073040000007400530029014e2901720d000000720e000000720e000000720e000000720f000000da097665725f76616c6f720d0000007302000000000272110000004e2908da0448617368720c000000720d000000da085f5f6578706f7274da03737472da05666c6f617472100000007211000000720e000000720e000000720e000000720f000000da083c6d6f64756c653e0100000073080000000e010e0306011607