Skip to content

Commit

Permalink
Add TON blockchain to app status
Browse files Browse the repository at this point in the history
  • Loading branch information
ealymbaev committed Oct 23, 2024
1 parent d33f7b1 commit 75b568a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ extension TonAdapter: IAdapter {
}

var statusInfo: [(String, Any)] {
[]
[
("Sync State", "\(tonKit.syncState)"),
("Jetton Sync State", "\(tonKit.jettonSyncState)"),
("Event Sync State", "\(tonKit.eventSyncState)"),
]
}

var debugInfo: String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class AppStatusViewModel {
let blockchain = wallet.token.blockchain

switch blockchain.type {
case .bitcoin, .bitcoinCash, .ecash, .litecoin, .dash, .zcash:
case .bitcoin, .bitcoinCash, .ecash, .litecoin, .dash, .zcash, .ton:
if let adapter = adapterManager.adapter(for: wallet) {
blockchainBlocks.append(block(blockchain: blockchain.name, statusInfo: adapter.statusInfo))
}
Expand Down

0 comments on commit 75b568a

Please sign in to comment.