Skip to content

Commit 34c73f2

Browse files
committed
fix: throw if inscription number is null
safer than colliding with the genesis inscription
1 parent 7304833 commit 34c73f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/dto/ordinals/inscription_data.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class InscriptionData {
7373

7474
return InscriptionData(
7575
inscriptionId: inscriptionId,
76-
inscriptionNumber: json['inscription_number'] as int? ?? 0,
76+
inscriptionNumber: json['inscription_number'] as int,
7777
address: json['address'] as String? ?? '',
7878
preview: contentUrl,
7979
content: contentUrl,

0 commit comments

Comments
 (0)