Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ERussel committed Feb 3, 2025
1 parent 2587f2c commit b9b6874
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions ios/PolkadotVault/Cards/TransactionCardSelector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ struct TransactionCardSelector: View {
TCAuthorPlain(value: value)
case let .authorPublicKeyCard(value): // Not present on new designs
TCAuthorPublicKey(value: value)

// Foldable Markdown values on tap
case let .callCard(value): // This is used to present `Method` and provides details on tap
TCCall(value: value)
Expand All @@ -26,7 +25,6 @@ struct TransactionCardSelector: View {
TCFieldName(value: value)
case let .fieldNumberCard(value):
TCFieldNumber(value: value)

// Sections
case let .newSpecsCard(value): // User when adding new network, redesigned
TCAddNewNetwork(value: value)
Expand All @@ -39,21 +37,18 @@ struct TransactionCardSelector: View {
case let .txSpecPlainCard(value): // Unknown network information for given transaction, not present on new
// designs
TCTXSpecPlain(content: value)

// Error handling
case let .errorCard(text):
TCError(text: text)
case let .warningCard(text):
TCWarning(text: text)

// Simple values with identicons / icons / markdown
case let .networkInfoCard(value): // Not present in new designs
TCNetworkInfo(content: value)
case let .typesInfoCard(value): // Not present in new designs
TCTypesInfo(content: value)
case let .textCard(text): // Markdown text field, not present on new designs
TCText(text: text)

// Simple values - redesigned
case let .authorCard(author):
TCNamedValueCard(name: Localizable.TCName.from.string, value: author.base58, valueInSameLine: false)
Expand Down
2 changes: 1 addition & 1 deletion ios/PolkadotVault/Helpers/URLOpening.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protocol URLOpening: AnyObject {
func open(
_ url: URL,
options: [UIApplication.OpenExternalURLOptionsKey: Any],
completionHandler completion: ((Bool) -> Void)?
completionHandler completion: (@MainActor @Sendable (Bool) -> Void)?
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extension MTransaction {
var hasImportableKeys: Bool {
switch ttype {
case .importDerivations:
var hasImportableKeys: Bool = false
var hasImportableKeys = false
sortedValueCards().forEach {
if case let .derivationsCard(keys) = $0.card {
hasImportableKeys = keys
Expand Down

0 comments on commit b9b6874

Please sign in to comment.