Esempio 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))
     });
 }
Esempio 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>())
     });
 }