From 01f00a67e6945ea02ae2c1a3c56e622afce09ec6 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Wed, 17 Jan 2024 16:08:39 +0100 Subject: [PATCH] fixed unused variable 2 --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 51fae358..b65daa61 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3508,7 +3508,7 @@ bool wallet2::add_custom_asset_id(const crypto::public_key& asset_id, asset_desc req.asset_id = asset_id; bool r = m_core_proxy->call_COMMAND_RPC_GET_ASSET_INFO(req, resp); - if (resp.status == API_RETURN_CODE_OK) + if (r && resp.status == API_RETURN_CODE_OK) { m_custom_assets[asset_id] = resp.asset_descriptor; asset_descriptor = resp.asset_descriptor;