Skip to content

Commit 5952472

Browse files
committed
fix: restore accidentally removed bool TMPL_INST in rpc/util.cpp
Commit a3e6fdd ('test: fix test assertions after backport') accidentally removed the TMPL_INST(CheckRequiredOrDefault, bool, ...) line that was added in 1e7166e. This caused linker errors across multiple CI build configurations (nowallet, ubsan, fuzz, tsan, multiprocess) due to the missing ArgValue<bool> template instantiation. Restore the line in its correct position.
1 parent a3e6fdd commit 5952472

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/rpc/util.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ TMPL_INST(nullptr, std::optional<bool>, maybe_arg ? std::optional{maybe_arg->get
579579
TMPL_INST(nullptr, const std::string*, maybe_arg ? &maybe_arg->get_str() : nullptr;);
580580

581581
// Required arg or optional arg with default value.
582+
TMPL_INST(CheckRequiredOrDefault, bool, CHECK_NONFATAL(maybe_arg)->get_bool(););
582583
TMPL_INST(CheckRequiredOrDefault, int, CHECK_NONFATAL(maybe_arg)->getInt<int>(););
583584
TMPL_INST(CheckRequiredOrDefault, uint64_t, CHECK_NONFATAL(maybe_arg)->getInt<uint64_t>(););
584585
TMPL_INST(CheckRequiredOrDefault, const std::string&, CHECK_NONFATAL(maybe_arg)->get_str(););

0 commit comments

Comments
 (0)