internal Hashgraph.Extensions.FeeSchedule ToFeeSchedule() { return(new Hashgraph.Extensions.FeeSchedule { Expires = ExpiryTime.ToDateTime(), Data = TransactionFeeSchedule.ToDictionary(fee => fee.HederaFunctionality.ToString(), fee => JsonFormatter.Default.Format(fee.FeeData)) }); }
internal Hashgraph.Extensions.FeeSchedule ToFeeSchedule() { return(new Hashgraph.Extensions.FeeSchedule { Expires = ExpiryTime.ToDateTime(), Data = TransactionFeeSchedule.ToDictionary( fee => fee.HederaFunctionality.ToString(), fee => fee.Fees?.Select(item => JsonFormatter.Default.Format(item)).ToArray() ?? Array.Empty <string>()) }); }