Skip to content

Commit

Permalink
fix(evm): correctly display eth addr in iguana v2 activation result (#…
Browse files Browse the repository at this point in the history
…2254)

Show full evm coins address in iguana v2 activation result instead of truncated address.
  • Loading branch information
borngraced authored Oct 25, 2024
1 parent f487947 commit 8de861d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions mm2src/coins_activation/src/eth_with_token_activation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use coins::coin_balance::{CoinBalanceReport, EnableCoinBalanceOps};
use coins::eth::v2_activation::{eth_coin_from_conf_and_request_v2, Erc20Protocol, Erc20TokenActivationRequest,
EthActivationV2Error, EthActivationV2Request, EthPrivKeyActivationPolicy};
use coins::eth::v2_activation::{EthTokenActivationError, NftActivationRequest, NftProviderEnum};
use coins::eth::{Erc20TokenInfo, EthCoin, EthCoinType, EthPrivKeyBuildPolicy};
use coins::eth::{display_eth_address, Erc20TokenInfo, EthCoin, EthCoinType, EthPrivKeyBuildPolicy};
use coins::hd_wallet::RpcTaskXPubExtractor;
use coins::my_tx_history_v2::TxHistoryStorage;
use coins::nft::nft_structs::NftInfo;
Expand Down Expand Up @@ -360,8 +360,11 @@ impl PlatformCoinWithTokensActivationOps for EthCoin {
return Ok(EthWithTokensActivationResult::Iguana(
IguanaEthWithTokensActivationResult {
current_block,
eth_addresses_infos: HashMap::from([(my_address.to_string(), eth_address_info)]),
erc20_addresses_infos: HashMap::from([(my_address.to_string(), erc20_address_info)]),
eth_addresses_infos: HashMap::from([(display_eth_address(my_address), eth_address_info)]),
erc20_addresses_infos: HashMap::from([(
display_eth_address(my_address),
erc20_address_info,
)]),
nfts_infos: nfts_map,
},
));
Expand All @@ -385,8 +388,8 @@ impl PlatformCoinWithTokensActivationOps for EthCoin {
Ok(EthWithTokensActivationResult::Iguana(
IguanaEthWithTokensActivationResult {
current_block,
eth_addresses_infos: HashMap::from([(my_address.to_string(), eth_address_info)]),
erc20_addresses_infos: HashMap::from([(my_address.to_string(), erc20_address_info)]),
eth_addresses_infos: HashMap::from([(display_eth_address(my_address), eth_address_info)]),
erc20_addresses_infos: HashMap::from([(display_eth_address(my_address), erc20_address_info)]),
nfts_infos: nfts_map,
},
))
Expand Down

0 comments on commit 8de861d

Please sign in to comment.