Skip to content

Commit

Permalink
Merge branch 'feature/ui_updates' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed Dec 5, 2023
2 parents 89036fe + 5fe09c7 commit a47b6d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
11 changes: 8 additions & 3 deletions Kukai Mobile/Extensions/String+extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit a47b6d1

Please sign in to comment.