diff --git a/src/key_io.cpp b/src/key_io.cpp index b8d8d45983..f5a37a21ff 100644 --- a/src/key_io.cpp +++ b/src/key_io.cpp @@ -127,11 +127,14 @@ public: } std::string operator()(const CNoDestination& no) const { return {}; } - std::string operator()(const NullData& null) const { return {}; } + std::string operator()(const NullData& null) const { return "null"; } }; CTxDestination DecodeDestination(const std::string& str, const CChainParams& params, const bool for_parent, std::string& error_str) { + // ELEMENTS: special case nulldata as "null" + if (str == "null") return NullData{}; + std::vector data; size_t pk_size = CPubKey::COMPRESSED_SIZE; uint160 hash; diff --git a/src/test/fuzz/integer.cpp b/src/test/fuzz/integer.cpp index e9fa343896..e28e2feb0a 100644 --- a/src/test/fuzz/integer.cpp +++ b/src/test/fuzz/integer.cpp @@ -16,8 +16,6 @@ #include #include #include -#include -#include