Contract con_sumas2


Contract Code


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

Byte Code

e30000000000000000000000000600000040000000732e000000650064006401640264038d035a01650264018301650365036504650464049c0464056406840483015a05640753002908e900000000da0a636f6e5f73756d617332da0573756d61732903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d652904da056461746f31da056461746f32da07616d6f756e7431da07616d6f756e7432630400000000000000050000000400000043000000733400000074007c00050019007c02370003003c0074007c01050019007c03370003003c0074007c00190074007c01190017007d047c04530029014e2901da075f5f73756d61732905720700000072080000007209000000720a000000da05746f74616ca900720d000000da00da046d696e740400000073080000000002100110011001720f0000004e2906da0448617368720b000000da085f5f6578706f7274da03737472da05666c6f6174720f000000720d000000720d000000720d000000720e000000da083c6d6f64756c653e0100000073040000000e030601