From adbe3308b4b2ca0e92070fb3ae6d18a1f0905c26 Mon Sep 17 00:00:00 2001 From: redDwarf03 Date: Thu, 22 Dec 2022 19:14:19 +0100 Subject: [PATCH] change uppercase affectation --- lib/src/model/authorized_key.dart | 2 +- lib/src/model/transaction.dart | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/src/model/authorized_key.dart b/lib/src/model/authorized_key.dart index f2782fe4..ce9a8508 100644 --- a/lib/src/model/authorized_key.dart +++ b/lib/src/model/authorized_key.dart @@ -11,7 +11,7 @@ class AuthorizedKey { ); Map toJson() => { - 'publicKey': publicKey == null ? null : publicKey!.toUpperCase(), + 'publicKey': publicKey, 'encryptedSecretKey': encryptedSecretKey, }; diff --git a/lib/src/model/transaction.dart b/lib/src/model/transaction.dart index 49f49deb..ea6a0b65 100644 --- a/lib/src/model/transaction.dart +++ b/lib/src/model/transaction.dart @@ -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!),