diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 2895b1ddde..1c99251e69 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4322,7 +4322,12 @@ UniValue addressmap(const JSONRPCRequest &request) { if (key.IsCompressed()) { key.Decompress(); } - format.pushKV("erc55", EncodeDestination(WitnessV16EthHash(key))); + auto erc55 = EncodeDestination(WitnessV16EthHash(key)); + // Check if it's in the wallet. + // Note: Can be removed if the full wallet is migrated. + // Ref: https://github.com/DeFiCh/ain/issues/2604 + AddrToPubKey(pwallet, erc55); + format.pushKV("erc55", erc55); break; } case AddressConversionType::EVMToDVMAddress: {