diff --git a/src/handlers/RPCHelpers.cpp b/src/handlers/RPCHelpers.cpp index b67dfbde..5050aa76 100644 --- a/src/handlers/RPCHelpers.cpp +++ b/src/handlers/RPCHelpers.cpp @@ -57,7 +57,7 @@ accountFromStringStrict(std::string const& account) { auto blob = ripple::strUnHex(account); - boost::optional publicKey = {}; + std::optional publicKey = {}; if (blob && ripple::publicKeyType(ripple::makeSlice(*blob))) { publicKey = @@ -69,7 +69,7 @@ accountFromStringStrict(std::string const& account) ripple::TokenType::AccountPublic, account); } - boost::optional result; + std::optional result; if (publicKey) result = ripple::calcAccountID(*publicKey); else @@ -320,7 +320,7 @@ traverseOwnedNodes( return nextCursor; } -boost::optional +std::optional parseRippleLibSeed(boost::json::value const& value) { // ripple-lib encodes seed used to generate an Ed25519 wallet in a @@ -374,8 +374,8 @@ keypairFromRequst(boost::json::object const& request) " passphrase, secret, seed, or seed_hex"}; } - boost::optional keyType; - boost::optional seed; + std::optional keyType; + std::optional seed; if (has_key_type) { diff --git a/src/handlers/methods/impl/ChannelVerify.cpp b/src/handlers/methods/impl/ChannelVerify.cpp index a9eb2319..2258fccc 100644 --- a/src/handlers/methods/impl/ChannelVerify.cpp +++ b/src/handlers/methods/impl/ChannelVerify.cpp @@ -60,7 +60,7 @@ doChannelVerify(Context const& context) if(!request.at("public_key").is_string()) return Status{Error::rpcINVALID_PARAMS, "publicKeyNotString"}; - boost::optional pk; + std::optional pk; { std::string const strPk = request.at("public_key").as_string().c_str(); pk = ripple::parseBase58(ripple::TokenType::AccountPublic, strPk); @@ -105,4 +105,4 @@ doChannelVerify(Context const& context) return response; } -} // namespace RPC \ No newline at end of file +} // namespace RPC