コード例 #1
0
 static SetDepositsLimitContent UnforgeSetDepositsLimit(ForgedReader reader)
 {
     return(new SetDepositsLimitContent
     {
         Source = reader.ReadTzAddress(),
         Fee = (long)reader.ReadUBigInt(),
         Counter = (int)reader.ReadUBigInt(),
         GasLimit = (int)reader.ReadUBigInt(),
         StorageLimit = (int)reader.ReadUBigInt(),
         Limit = reader.ReadBool() ? reader.ReadUBigInt() : null
     });
 }
コード例 #2
0
 static T UnforgeConditional <T>(ForgedReader reader, Func <T> tb, Func <T> fb = null)
     where T : class
 {
     return(reader.ReadBool() ? tb() : fb?.Invoke());
 }