Skip to content

Commit

Permalink
Merge pull request #493 from Outblock/feature/custom-token-toast
Browse files Browse the repository at this point in the history
feat: if custom token not found, show toast
  • Loading branch information
zhouxl authored Nov 7, 2024
2 parents f2c58b7 + 8e8089d commit 7a4496a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class AddCustomTokenViewModel: ObservableObject {
try await fetchInfo(by: customAddress)
HUD.dismissLoading()
} catch {
HUD.error(title: "invalid_erc20".localized)
log.error("[Add Custom Token] \(error.localizedDescription)")
HUD.dismissLoading()
}
Expand Down
1 change: 1 addition & 0 deletions FRW/Resource/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -1046,3 +1046,4 @@ Please create backups for your wallet to ensure you retain access to your Flow a
"Seed Phrase Backup" = "Seed Phrase Backup";
"Add Suggested Token" = "Add Suggested Token";
"like_import_token" = "Would you like to import this token?";
"invalid_erc20" = "Invalid ERC20 address";

0 comments on commit 7a4496a

Please sign in to comment.