コード例 #1
0
 protected async Task HandleValidSubmit()
 {
     _output = null;
     await _network.ExecuteAsync(_input.Gateway, _input.Payer, async client =>
     {
         var callParams = new CallContractParams
         {
             Contract      = _input.Contract,
             Gas           = _input.Gas.GetValueOrDefault(),
             PayableAmount = _input.Amount.GetValueOrDefault(),
             FunctionName  = _input.FunctionName,
             FunctionArgs  = _input.Arguments.ToArray()
         };
         _output = await client.CallContractWithRecordAsync(callParams, ctx => ctx.Memo = _input.Memo?.Trim());
     });
 }
コード例 #2
0
 internal CallContractRecord FillProperties(CallContractRecord record)
 {
     FillCommonProperties(record);
     record.CallResult = ContractCallResult.ToContractCallResult();
     return(record);
 }