コード例 #1
0
 def updateLambda(unitParam):
     sp.set_type(unitParam, sp.TUnit)
     storeContractHandle = sp.contract(sp.TNat, box.address,
                                       'update').open_some()
     sp.result([
         sp.transfer_operation(newValue, sp.mutez(0), storeContractHandle)
     ])
コード例 #2
0
 def execution_payload(x):
     sp.set_type(x, sp.TUnit)
     honey_pot_contract = sp.contract(sp.TUnit, honeypot).open_some()
     sp.result([sp.transfer_operation(sp.unit, sp.mutez(0), honey_pot_contract)])