Skip to content

Commit

Permalink
More graceful ast json import.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseth committed Mar 14, 2022
1 parent c07a5a5 commit 3c267b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsolidity/ast/ASTJsonImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ ASTPointer<UsingForDirective> ASTJsonImporter::createUsingForDirective(Json::Val
move(functions),
!_node.isMember("libraryName"),
_node["typeName"].isNull() ? nullptr : convertJsonToASTNode<TypeName>(_node["typeName"]),
_node.isMember("global") && _node["global"].asBool()
memberAsBool(_node, "global")
);
}

Expand Down

0 comments on commit 3c267b7

Please sign in to comment.