Skip to content

Commit

Permalink
change uppercase affectation
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Dec 22, 2022
1 parent 8e0fbc4 commit adbe330
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/model/authorized_key.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class AuthorizedKey {
);

Map<String, dynamic> toJson() => <String, dynamic>{
'publicKey': publicKey == null ? null : publicKey!.toUpperCase(),
'publicKey': publicKey,
'encryptedSecretKey': encryptedSecretKey,
};

Expand Down
6 changes: 6 additions & 0 deletions lib/src/model/transaction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,12 @@ class Transaction {
bufAuthKeyLength
];

for (final element in ownership.authorizedPublicKeys!) {
if (element.publicKey != null) {
element.publicKey = element.publicKey!.toUpperCase();
}
}

ownership.authorizedPublicKeys!.sort(
(AuthorizedKey a, AuthorizedKey b) =>
a.publicKey!.compareTo(b.publicKey!),
Expand Down

0 comments on commit adbe330

Please sign in to comment.