diff options
author | Jon Atack <jon@atack.com> | 2023-03-19 10:16:09 -0700 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2023-04-10 10:41:35 -0700 |
commit | 079d8cdda8eeebe199fb6592fca2630c37662731 (patch) | |
tree | cd7f4d3bde3449e4d1919e3035b937e622141d14 /src/wallet/rpc/addresses.cpp | |
parent | f73782a9032a462a71569e9424db9bf9eeababf3 (diff) |
rpc: extract wallet "warnings" fields to a util helper
Diffstat (limited to 'src/wallet/rpc/addresses.cpp')
-rw-r--r-- | src/wallet/rpc/addresses.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpc/addresses.cpp b/src/wallet/rpc/addresses.cpp index da63d45d11..4c27b08373 100644 --- a/src/wallet/rpc/addresses.cpp +++ b/src/wallet/rpc/addresses.cpp @@ -300,7 +300,7 @@ RPCHelpMan addmultisigaddress() // Only warns if the user has explicitly chosen an address type we cannot generate warnings.push_back("Unable to make chosen address type, please ensure no uncompressed public keys are present."); } - if (!warnings.empty()) result.pushKV("warnings", warnings); + PushWarnings(warnings, result); return result; }, |