mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
pow-testgiver support
This commit is contained in:
parent
dbde9c1c40
commit
f064b1047a
257 changed files with 6665 additions and 2608 deletions
|
@ -605,6 +605,15 @@ bool has_json_object_field(const JsonObject &object, Slice name) {
|
|||
return false;
|
||||
}
|
||||
|
||||
JsonValue get_json_object_field_force(JsonObject &object, Slice name) {
|
||||
for (auto &field_value : object) {
|
||||
if (field_value.first == name) {
|
||||
return std::move(field_value.second);
|
||||
}
|
||||
}
|
||||
return JsonValue();
|
||||
}
|
||||
|
||||
Result<JsonValue> get_json_object_field(JsonObject &object, Slice name, JsonValue::Type type, bool is_optional) {
|
||||
for (auto &field_value : object) {
|
||||
if (field_value.first == name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue