You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/signed_document/signed_document_manager_impl.dart
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ final class SignedDocumentManagerImpl implements SignedDocumentManager {
51
51
return_CoseSignedDocument(
52
52
coseSign: coseSign,
53
53
payload: payload,
54
-
metadata: metadata.adapt(authors: signers),
54
+
metadata: metadata.toModel(authors: signers),
55
55
signers: signers,
56
56
);
57
57
}
@@ -192,13 +192,23 @@ final class _CoseSignedDocument with EquatableMixin implements SignedDocument {
192
192
}
193
193
194
194
extensiononSignedDocumentMetadata {
195
-
DocumentDataMetadataadapt({
195
+
DocumentDataMetadatatoModel({
196
196
List<CatalystId>? authors,
197
197
}) {
198
+
final id =this.id;
199
+
final ver =this.ver;
200
+
201
+
if (id ==null) {
202
+
throwconstFormatException('Signed document id was null');
203
+
}
204
+
if (ver ==null) {
205
+
throwconstFormatException('Signed document ver was null');
0 commit comments