mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
rpc: extract wallet "warnings" fields to a util helper
This commit is contained in:
parent
f73782a903
commit
079d8cdda8
5 changed files with 18 additions and 4 deletions
|
|
@ -162,7 +162,7 @@ static RPCHelpMan createmultisig()
|
|||
// 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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue