File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -163,11 +163,11 @@ static RPCHelpMan createmultisig()
163
163
result.pushKV (" descriptor" , descriptor->ToString ());
164
164
165
165
UniValue warnings (UniValue::VARR);
166
- if (!request. params [ 2 ]. isNull () && OutputTypeFromDestination (dest ) != output_type) {
166
+ if (descriptor-> GetOutputType ( ) != output_type) {
167
167
// Only warns if the user has explicitly chosen an address type we cannot generate
168
168
warnings.push_back (" Unable to make chosen address type, please ensure no uncompressed public keys are present." );
169
169
}
170
- if (warnings.size ()) result.pushKV (" warnings" , warnings);
170
+ if (! warnings.empty ()) result.pushKV (" warnings" , warnings);
171
171
172
172
return result;
173
173
},
Original file line number Diff line number Diff line change @@ -302,11 +302,11 @@ RPCHelpMan addmultisigaddress()
302
302
result.pushKV (" descriptor" , descriptor->ToString ());
303
303
304
304
UniValue warnings (UniValue::VARR);
305
- if (!request. params [ 3 ]. isNull () && OutputTypeFromDestination (dest ) != output_type) {
305
+ if (descriptor-> GetOutputType ( ) != output_type) {
306
306
// Only warns if the user has explicitly chosen an address type we cannot generate
307
307
warnings.push_back (" Unable to make chosen address type, please ensure no uncompressed public keys are present." );
308
308
}
309
- if (warnings.size ()) result.pushKV (" warnings" , warnings);
309
+ if (! warnings.empty ()) result.pushKV (" warnings" , warnings);
310
310
311
311
return result;
312
312
},
You can’t perform that action at this time.
0 commit comments