From c2a44880cd0199265b0218eb354aad521eecd9b8 Mon Sep 17 00:00:00 2001 From: Simon McLoughlin Date: Tue, 5 Dec 2023 14:15:16 +0000 Subject: [PATCH 1/2] - bug fix: parsing expressions to sign --- Kukai Mobile/Extensions/String+extensions.swift | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Kukai Mobile/Extensions/String+extensions.swift b/Kukai Mobile/Extensions/String+extensions.swift index 3fbb74e0..c76fd4b8 100644 --- a/Kukai Mobile/Extensions/String+extensions.swift +++ b/Kukai Mobile/Extensions/String+extensions.swift @@ -9,11 +9,16 @@ import UIKit extension String { + /* + 05 = micheline expression + 01 = string + 00000042 = number of characters (66 in this example) + */ public func humanReadableStringFromMichelson() -> String { - if String(self.prefix(6)) == "050100" { - return processString(fromIndex: 10) + if String(self.prefix(4)) == "0501" { + return processString(fromIndex: 12) - } else if String(self.prefix(8)) == "0x050100" { + } else if String(self.prefix(6)) == "0x0501" { return processString(fromIndex: 14) } From 5fe09c7be034322af040f9b5346da2bfae68cb23 Mon Sep 17 00:00:00 2001 From: Simon McLoughlin Date: Tue, 5 Dec 2023 14:35:23 +0000 Subject: [PATCH 2/2] reverting back to macos-13 as 14 is not available yet --- .github/workflows/build-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index b43b4f95..4420abf8 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -8,7 +8,7 @@ on: jobs: deploy: name: Deploying to Testflight - runs-on: macos-14 + runs-on: macos-13 steps: - name: Select Xcode version run: sudo xcode-select -s '/Applications/Xcode_15.0.1.app/Contents/Developer'