protected async Task HandleValidSubmit() { _output = null; await _network.ExecuteAsync(_input.Gateway, _input.Payer, async client => { var createParams = new CreateContractParams { File = _input.File, Administrator = _input.Administrator != Endorsement.None ? _input.Administrator : null, Gas = _input.Gas.GetValueOrDefault(), RenewPeriod = TimeSpan.FromSeconds(7890000), InitialBalance = _input.InitialBalance.GetValueOrDefault(), Arguments = _input.Arguments.ToArray() }; _output = await client.CreateContractAsync(createParams, ctx => ctx.Memo = _input.Memo?.Trim()); }); }
internal CreateContractReceipt FillProperties(TransactionID transactionId, CreateContractReceipt receipt) { FillCommonProperties(transactionId, receipt); receipt.Contract = ContractID.ToAddress(); return(receipt); }