Skip to content

Commit

Permalink
fix: update serviceEndpoint type (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-tbd authored Apr 23, 2024
1 parent eb6746f commit f474857
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/web5/lib/src/dids/did_core/did_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class DidService implements DidResource {

/// A network address, such as an HTTP URL, at which services operate on behalf
/// of a DID subject.
final String serviceEndpoint;
final List<String> serviceEndpoint;

DidService({
required this.id,
Expand All @@ -40,7 +40,8 @@ class DidService implements DidResource {
return DidService(
id: json['id'],
type: json['type'],
serviceEndpoint: json['serviceEndpoint'].toString(),
serviceEndpoint:
(json['serviceEndpoint'] as List).map((e) => e as String).toList(),
);
}
}

0 comments on commit f474857

Please sign in to comment.