Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make Transaction.boc nullable #238

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sealed class Transaction with _$Transaction implements Comparable<Transaction> {
@amountJsonConverter required final BigInt totalFees,
required final Message inMessage,
required final List<Message> outMessages,
required String boc,
required String? boc,
}) = _Transaction;

factory Transaction.fromJson(Map<String, dynamic> json) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mixin _$Transaction {
BigInt get totalFees => throw _privateConstructorUsedError;
Message get inMessage => throw _privateConstructorUsedError;
List<Message> get outMessages => throw _privateConstructorUsedError;
String get boc => throw _privateConstructorUsedError;
String? get boc => throw _privateConstructorUsedError;

Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
Expand All @@ -61,7 +61,7 @@ abstract class $TransactionCopyWith<$Res> {
@amountJsonConverter BigInt totalFees,
Message inMessage,
List<Message> outMessages,
String boc});
String? boc});

$TransactionIdCopyWith<$Res> get id;
$TransactionIdCopyWith<$Res>? get prevTransactionId;
Expand Down Expand Up @@ -92,7 +92,7 @@ class _$TransactionCopyWithImpl<$Res, $Val extends Transaction>
Object? totalFees = null,
Object? inMessage = null,
Object? outMessages = null,
Object? boc = null,
Object? boc = freezed,
}) {
return _then(_value.copyWith(
id: null == id
Expand Down Expand Up @@ -139,10 +139,10 @@ class _$TransactionCopyWithImpl<$Res, $Val extends Transaction>
? _value.outMessages
: outMessages // ignore: cast_nullable_to_non_nullable
as List<Message>,
boc: null == boc
boc: freezed == boc
? _value.boc
: boc // ignore: cast_nullable_to_non_nullable
as String,
as String?,
) as $Val);
}

Expand Down Expand Up @@ -195,7 +195,7 @@ abstract class _$$TransactionImplCopyWith<$Res>
@amountJsonConverter BigInt totalFees,
Message inMessage,
List<Message> outMessages,
String boc});
String? boc});

@override
$TransactionIdCopyWith<$Res> get id;
Expand Down Expand Up @@ -227,7 +227,7 @@ class __$$TransactionImplCopyWithImpl<$Res>
Object? totalFees = null,
Object? inMessage = null,
Object? outMessages = null,
Object? boc = null,
Object? boc = freezed,
}) {
return _then(_$TransactionImpl(
id: null == id
Expand Down Expand Up @@ -274,10 +274,10 @@ class __$$TransactionImplCopyWithImpl<$Res>
? _value._outMessages
: outMessages // ignore: cast_nullable_to_non_nullable
as List<Message>,
boc: null == boc
boc: freezed == boc
? _value.boc
: boc // ignore: cast_nullable_to_non_nullable
as String,
as String?,
));
}
}
Expand Down Expand Up @@ -337,7 +337,7 @@ class _$TransactionImpl extends _Transaction {
}

@override
final String boc;
final String? boc;

@override
String toString() {
Expand Down Expand Up @@ -416,7 +416,7 @@ abstract class _Transaction extends Transaction {
@amountJsonConverter required final BigInt totalFees,
required final Message inMessage,
required final List<Message> outMessages,
required final String boc}) = _$TransactionImpl;
required final String? boc}) = _$TransactionImpl;
const _Transaction._() : super._();

factory _Transaction.fromJson(Map<String, dynamic> json) =
Expand Down Expand Up @@ -449,7 +449,7 @@ abstract class _Transaction extends Transaction {
@override
List<Message> get outMessages;
@override
String get boc;
String? get boc;
@override
@JsonKey(ignore: true)
_$$TransactionImplCopyWith<_$TransactionImpl> get copyWith =>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading