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' 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) }