fix sto_from_json error (#438)

This commit is contained in:
tequ
2025-02-24 17:27:21 +09:00
committed by GitHub
parent 8b29fc5ee1
commit 15515b84f8

View File

@@ -30,6 +30,7 @@
#include <ripple/json/json_value.h>
#include <ripple/json/json_writer.h>
#include <ripple/json/json_reader.h>
#include <ripple/json/to_string.h>
using namespace ripple;
// check if any std::optionals are missing (any !has_value())
@@ -5436,7 +5437,7 @@ DEFINE_JS_FUNCTION(
returnJS(INVALID_ARGUMENT);
std::cout << "sto_from_json, valid json\n";
std::cout << json.asString() << "\n";
std::cout << to_string(json) << "\n";
// turn the json into a stobject
STParsedJSONObject parsed(std::string(jss::tx_json), json);