Skip to content

Commit

Permalink
bug fix ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed Aug 20, 2024
1 parent d89988e commit 6512793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/KukaiCoreSwift/Models/WalletMetadata.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public class WalletMetadataList: Codable, Hashable {
if metadata.address == address { hdWallets[index] = newMetadata; return true }

for (childIndex, childMetadata) in metadata.children.enumerated() {
if childMetadata.address == address { hdWallets[index].children[childIndex] = newMetadata; return true }
if childMetadata.address == address { hdWallets[index].children[childIndex] = newMetadata; return true }
}
}

Expand All @@ -110,7 +110,7 @@ public class WalletMetadataList: Codable, Hashable {
if metadata.address == address { ledgerWallets[index] = newMetadata; return true }

for (childIndex, childMetadata) in metadata.children.enumerated() {
if childMetadata.address == address { hdWallets[index].children[childIndex] = newMetadata; return true }
if childMetadata.address == address { ledgerWallets[index].children[childIndex] = newMetadata; return true }
}
}

Expand Down

0 comments on commit 6512793

Please sign in to comment.