Skip to content

Commit

Permalink
GH-403 Fix a couple compilation errors from the backport merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwaldp-oci committed Jun 27, 2022
1 parent 5e7edd3 commit e66feb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ class signing_keys_option {
} else {
fc::variant json_keys;
try {
json_keys = fc::json::from_string(public_key_json, fc::json::relaxed_parser);
json_keys = fc::json::from_string(public_key_json, fc::json::parse_type::relaxed_parser);
} EOS_RETHROW_EXCEPTIONS(json_parse_exception, "Fail to parse JSON from string: ${string}", ("string", public_key_json));
try {
std::vector<public_key_type> keys = json_keys.template as<std::vector<public_key_type>>();
signing_keys = std::move(keys);
} EOS_RETHROW_EXCEPTIONS(public_key_type_exception, "Invalid public key array format '${data}'", ("data", fc::json::to_string(json_keys)))
} EOS_RETHROW_EXCEPTIONS(public_key_type_exception, "Invalid public key array format '${data}'", ("data", fc::json::to_string(json_keys, fc::time_point::maximum())))
}
}
return signing_keys;
Expand Down

0 comments on commit e66feb6

Please sign in to comment.