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 }); }
static T UnforgeConditional <T>(ForgedReader reader, Func <T> tb, Func <T> fb = null) where T : class { return(reader.ReadBool() ? tb() : fb?.Invoke()); }