mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Replace boost::optional with std::optional
This commit is contained in:
parent
fa7e803f3e
commit
fa4435e22f
7 changed files with 12 additions and 12 deletions
|
|
@ -309,7 +309,7 @@ static RPCHelpMan getrawchangeaddress()
|
|||
throw JSONRPCError(RPC_WALLET_ERROR, "Error: This wallet has no available keys");
|
||||
}
|
||||
|
||||
OutputType output_type = pwallet->m_default_change_type.get_value_or(pwallet->m_default_address_type);
|
||||
OutputType output_type = pwallet->m_default_change_type.value_or(pwallet->m_default_address_type);
|
||||
if (!request.params[0].isNull()) {
|
||||
if (!ParseOutputType(request.params[0].get_str(), output_type)) {
|
||||
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Unknown address type '%s'", request.params[0].get_str()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue