Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix ui #1483

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rust/apps/cosmos/src/transaction/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub fn get_network_by_chain_id(chain_id: &str) -> Result<String> {
map.insert("phoenix", "Terra");
map.insert("columbus", "Terra Classic");
map.insert("thorchain", "THORChain");
map.insert("neutron", "Neutron");
let chain_id_parts: Vec<&str> = chain_id.split("-").collect();
let chain_id_prefix = if chain_id_parts.len() > 1 {
chain_id_parts[..chain_id_parts.len() - 1].join("-")
Expand Down Expand Up @@ -96,6 +97,7 @@ pub fn get_chain_id_by_address(address: &str) -> String {
map.insert("quick", "quicksilver-1");
map.insert("terra", "phoenix-1");
map.insert("thor", "thorchain");
map.insert("neutron", "neutron");
for (k, v) in map {
if address.starts_with(k) {
return v.to_string();
Expand Down
4 changes: 2 additions & 2 deletions src/ui/gui_components/gui_status_bar.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const static CoinWalletInfo_t g_coinWalletBtn[] = {
{HOME_WALLET_CARD_SUI, "", &coinSui}, {HOME_WALLET_CARD_DASH, "", &coinDash},
{HOME_WALLET_CARD_ARWEAVE, "", &coinAr}, {HOME_WALLET_CARD_XLM, "", &coinXlm},
{HOME_WALLET_CARD_COSMOS, "", &coinCosmos}, {HOME_WALLET_CARD_TIA, "", &coinTia},
{HOME_WALLET_CARD_DYM, "", &coinDym}, {HOME_WALLET_CARD_OSMO, "", &coinOsmo},
{HOME_WALLET_CARD_NTRN, "", &coinNtrn}, {HOME_WALLET_CARD_DYM, "", &coinDym}, {HOME_WALLET_CARD_OSMO, "", &coinOsmo},
{HOME_WALLET_CARD_INJ, "", &coinInj}, {HOME_WALLET_CARD_ATOM, "", &coinAtom},
{HOME_WALLET_CARD_CRO, "", &coinCro}, {HOME_WALLET_CARD_RUNE, "", &coinRune},
{HOME_WALLET_CARD_KAVA, "", &coinKava}, {HOME_WALLET_CARD_LUNC, "", &coinLunc}, {HOME_WALLET_CARD_AXL, "", &coinAxl},
Expand All @@ -90,7 +90,7 @@ const static CoinWalletInfo_t g_coinWalletBtn[] = {
{HOME_WALLET_CARD_NGM, "", &coinNgm}, {HOME_WALLET_CARD_IOV, "", &coinIov},
{HOME_WALLET_CARD_UMEE, "", &coinUmee}, {HOME_WALLET_CARD_QCK, "", &coinQck},
{HOME_WALLET_CARD_TGD, "", &coinTgd}, {HOME_WALLET_CARD_DOT, "", &coinDot},
{HOME_WALLET_CARD_NTRN, "", &coinNtrn},

#endif
};

Expand Down
Loading