Skip to content

Commit

Permalink
Fixes BitArray/BitVec toJson (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
justkawal authored Sep 3, 2024
1 parent c3d0122 commit 9e390b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/substrate_metadata/lib/utils/to_json.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ extension ToJson<T> on T {
Object? _encodeJson(Object? value) {
if (value is BigInt) {
return value.toString();
} else if (value is BitArray) {
return value.toJson();
} else if (value is Option) {
return _extractSomeValue(value);
} else if (value is MapEntry) {
Expand Down

0 comments on commit 9e390b6

Please sign in to comment.