Exemplo n.º 1
0
 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))
     });
 }
Exemplo n.º 2
0
 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>())
     });
 }