Skip to content
Snippets Groups Projects
Commit e5a51707 authored by Arkadiy Paronyan's avatar Arkadiy Paronyan
Browse files

Fixed empty name handling

parent 77c5b315
Branches
Tags
No related merge requests found
......@@ -198,7 +198,7 @@ impl FromJson for Spec {
Spec {
name: json["name"].as_string().unwrap().to_string(),
name: json.find("name").map(|j| j.as_string().unwrap()).unwrap_or("unknown").to_string(),
engine_name: json["engineName"].as_string().unwrap().to_string(),
engine_params: json_to_rlp_map(&json["params"]),
builtins: builtins,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment