Skip to content

Commit

Permalink
fix: auto fix by google code format
Browse files Browse the repository at this point in the history
  • Loading branch information
dwzhan committed Apr 28, 2024
1 parent 0dac6cf commit 836d8dc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/org/fisco/solc/compiler/CompilationResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,17 @@ public static CompilationResult parse(String rawJson) throws IOException {
JsonObject abiObject = new JsonObject();
abiObject.addProperty("abi", getJsonValueAsString(contractJsonObject, "abi"));
abiObject.addProperty("bin", getJsonValueAsString(contractJsonObject, "bin"));
abiObject.addProperty("metadata", getJsonValueAsString(contractJsonObject, "metadata"));
abiObject.addProperty(
"metadata", getJsonValueAsString(contractJsonObject, "metadata"));

if (contractJsonObject.get("userdoc") != null) {
abiObject.addProperty("userdoc", getJsonValueAsString(contractJsonObject, "userdoc"));
abiObject.addProperty(
"userdoc", getJsonValueAsString(contractJsonObject, "userdoc"));
}

if (contractJsonObject.get("devdoc") != null) {
abiObject.addProperty("devdoc", getJsonValueAsString(contractJsonObject, "devdoc"));
abiObject.addProperty(
"devdoc", getJsonValueAsString(contractJsonObject, "devdoc"));
}
contractObject.add(contract.toString(), abiObject);
}
Expand Down

0 comments on commit 836d8dc

Please sign in to comment.