Skip to content

Commit

Permalink
chore: fixed populate multichain denom alias
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Jul 25, 2024
1 parent 4fdbd1b commit ba10ad2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/data_fetcher/populate_multichain_wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (f *DataFetcher) PopulateMultichainWallet(
}

walletLink.Href = localChain.Explorer.GetWalletLink(walletLink.Value)
if alias := f.AliasManager.Get(subscriptionName, chain.Name, walletLink.Value); alias != "" {
if alias := f.AliasManager.Get(subscriptionName, localChain.Name, walletLink.Value); alias != "" {
walletLink.Title = alias
}
}
2 changes: 1 addition & 1 deletion pkg/data_fetcher/populate_multichain_wallet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func TestDataFetcherPopulateMultichainWalletRemoteOk(t *testing.T) {

dataFetcher.Cache.Set("chain_channel_channel_port_port", "remote-chain")

err := aliasManager.Set("subscription", "chain", "address", "alias")
err := aliasManager.Set("subscription", "chain2", "address", "alias")
require.NoError(t, err)

wallet := &types.Link{Value: "address"}
Expand Down

0 comments on commit ba10ad2

Please sign in to comment.