From eec3c1e673ce6e2ca6c404f0147fabfebba25e74 Mon Sep 17 00:00:00 2001 From: shamardy Date: Wed, 23 Apr 2025 20:24:54 +0200 Subject: [PATCH] fix withdraw nft in HD using the enabled address --- mm2src/coins/eth.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm2src/coins/eth.rs b/mm2src/coins/eth.rs index 882e6f64ec..7a82841687 100644 --- a/mm2src/coins/eth.rs +++ b/mm2src/coins/eth.rs @@ -1168,7 +1168,7 @@ pub async fn withdraw_erc1155(ctx: MmArc, withdraw_type: WithdrawErc1155) -> Wit Ok(TransactionNftDetails { tx_hex: BytesJson::from(signed_bytes.to_vec()), // TODO: should we return tx_hex 0x-prefixed (everywhere)? tx_hash: format!("{:02x}", signed.tx_hash_as_bytes()), // TODO: add 0x hash (use unified hash format for eth wherever it is returned) - from: vec![eth_coin.my_address()?], + from: vec![my_address.display_address()], to: vec![withdraw_type.to], contract_type: ContractType::Erc1155, token_address: withdraw_type.token_address, @@ -1259,7 +1259,7 @@ pub async fn withdraw_erc721(ctx: MmArc, withdraw_type: WithdrawErc721) -> Withd Ok(TransactionNftDetails { tx_hex: BytesJson::from(signed_bytes.to_vec()), tx_hash: format!("{:02x}", signed.tx_hash_as_bytes()), // TODO: add 0x hash (use unified hash format for eth wherever it is returned) - from: vec![eth_coin.my_address()?], + from: vec![my_address.display_address()], to: vec![withdraw_type.to], contract_type: ContractType::Erc721, token_address: withdraw_type.token_address,