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 @@ -169,11 +169,11 @@ static RPCHelpMan createmultisig()
169
169
result.pushKV (" descriptor" , descriptor->ToString ());
170
170
171
171
UniValue warnings (UniValue::VARR);
172
- if (!request. params [ 2 ]. isNull () && OutputTypeFromDestination (dest ) != output_type) {
172
+ if (descriptor-> GetOutputType ( ) != output_type) {
173
173
// Only warns if the user has explicitly chosen an address type we cannot generate
174
174
warnings.push_back (" Unable to make chosen address type, please ensure no uncompressed public keys are present." );
175
175
}
176
- if (warnings.size ()) result.pushKV (" warnings" , warnings);
176
+ if (! warnings.empty ()) result.pushKV (" warnings" , warnings);
177
177
178
178
return result;
179
179
},
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