From b4bc2ff5f78991466a874aedef0076bd7b58b66b Mon Sep 17 00:00:00 2001 From: Peter John Bushnell Date: Tue, 2 May 2023 15:34:33 +0100 Subject: [PATCH] Use hex variable in argument to IsHex Co-authored-by: Mihailo Milenkovic --- src/key_io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/key_io.cpp b/src/key_io.cpp index 919eec724e..8628d98ad9 100644 --- a/src/key_io.cpp +++ b/src/key_io.cpp @@ -74,7 +74,7 @@ CTxDestination DecodeDestination(const std::string& str, const CChainParams& par uint160 hash; if (str.size() == ETH_ADDR_LENGTH_INC_PREFIX && str.substr(0, 2) == ETH_ADDR_PREFIX) { const auto hex = str.substr(2); - if (!IsHex(str.substr(2))) { + if (!IsHex(hex)) { return CNoDestination(); } data = ParseHex(hex);