Contract con_enviar_6


Contract Code


  
1 import currency
2
3 @export
4 def tranferir(amount: int, to: str):
5 currency.transfer(amount, to)
6 return 'Exitoso'
7
8 @export
9 def balances(account: str):
10 return str(currency.balances[account])
11
12 @export
13 def approve(amount: float, to: str):
14 currency.approve(amount, to)
15
16

Byte Code

e300000000000000000000000004000000400000007352000000640064016c005a006501640283016502650364039c0264046405840483015a04650164028301650364069c0164076408840483015a056501640283016506650364039c026409640a840483015a0764015300290be9000000004eda0c636f6e5f656e766961725f362902da06616d6f756e74da02746f630200000000000000020000000300000043000000731000000074006a017c007c01830201006401530029024eda07457869746f736f2902da0863757272656e6379da087472616e73666572290272030000007204000000a9007208000000da00da097472616e666572697204000000730400000000020c01720a0000002901da076163636f756e74630100000000000000010000000300000043000000730e000000740074016a027c0019008301530029014e2903da037374727206000000da0862616c616e6365732901720b000000720800000072080000007209000000720d0000000a00000073020000000002720d000000630200000000000000020000000300000043000000731000000074006a017c007c01830201006400530029014e29027206000000da07617070726f7665290272030000007204000000720800000072080000007209000000720e0000000f00000073020000000002720e00000029087206000000da085f5f6578706f7274da03696e74720c000000720a000000720d000000da05666c6f6174720e0000007208000000720800000072080000007209000000da083c6d6f64756c653e01000000730c000000080306011205060110040601