Skip to content

Commit

Permalink
Merge pull request #1483 from KeystoneHQ/feat/support_neutron_chain
Browse files Browse the repository at this point in the history
fix: fix ui
  • Loading branch information
soralit authored Dec 2, 2024
2 parents f159f14 + 2edb0b7 commit 43d316d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit 43d316d

Please sign in to comment.