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()); }); }
internal CallContractRecord FillProperties(CallContractRecord record) { FillCommonProperties(record); record.CallResult = ContractCallResult.ToContractCallResult(); return(record); }