aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-07-18 22:54:38 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-07-24 17:40:18 +0200
commitfa7b57e5f5a6dafbbadc361ffd27b58afff1ed59 (patch)
tree7fed09f6280c0e6cfcbb7bc075a804426c3a785a /src/test/fuzz
parentfa9077724507faad207f29509a8202fc6ac9d502 (diff)
downloadbitcoin-fa7b57e5f5a6dafbbadc361ffd27b58afff1ed59.tar.xz
refactor: Replace ParseHashStr with FromHex
No need to have two functions with different names that achieve the exact same thing.
Diffstat (limited to 'src/test/fuzz')
-rw-r--r--src/test/fuzz/hex.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/fuzz/hex.cpp b/src/test/fuzz/hex.cpp
index f67b820d11..bc46863f1d 100644
--- a/src/test/fuzz/hex.cpp
+++ b/src/test/fuzz/hex.cpp
@@ -27,8 +27,7 @@ FUZZ_TARGET(hex)
assert(ToLower(random_hex_string) == hex_data);
}
(void)IsHexNumber(random_hex_string);
- uint256 result;
- (void)ParseHashStr(random_hex_string, result);
+ (void)uint256::FromHex(random_hex_string);
(void)uint256S(random_hex_string);
try {
(void)HexToPubKey(random_hex_string);