Contract con_aprobar_4


Contract Code


  
1 import currency
2
3 @export
4 def aprobar(currency_amount: float, to: str):
5 currency.approve(currency_amount, str(ctx.this))
6
7 @export
8 def transferir(currency_amount: float, to: str):
9 currency.transfer_from(amount=currency_amount, to=to,
10 main_account=ctx.caller)
11

Byte Code

e30000000000000000000000000400000040000000733c000000640064016c005a006501640283016502650364039c0264046405840483015a046501640283016502650364039c0264066407840483015a05640153002908e9000000004eda0d636f6e5f6170726f6261725f342902da0f63757272656e63795f616d6f756e74da02746f630200000000000000020000000400000043000000731600000074006a017c00740274036a048301830201006400530029014e2905da0863757272656e6379da07617070726f7665da03737472da03637478da0474686973290272030000007204000000a900720a000000da00da076170726f6261720400000073020000000002720c000000630200000000000000020000000500000043000000731600000074006a017c007c0174026a0364018d0301006400530029024e2903da06616d6f756e747204000000da0c6d61696e5f6163636f756e7429047205000000da0d7472616e736665725f66726f6d7208000000da0663616c6c6572290272030000007204000000720a000000720a000000720b000000da0a7472616e7366657269720900000073020000000002721100000029067205000000da085f5f6578706f7274da05666c6f61747207000000720c0000007211000000720a000000720a000000720a000000720b000000da083c6d6f64756c653e0100000073080000000803060112040601