Skip to content

Commit

Permalink
refactor method
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Dec 8, 2021
1 parent dd68caf commit 9c7746e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/com/esaulpaugh/headlong/abi/ContractError.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ public int hashCode() {

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ContractError that = (ContractError) o;
return name.equals(that.name) && inputs.equals(that.inputs);
if (o instanceof ContractError) {
ContractError that = (ContractError) o;
return name.equals(that.name) && inputs.equals(that.inputs);
}
return false;
}

public static ContractError fromJson(String errorJson) {
Expand Down

0 comments on commit 9c7746e

Please sign in to comment.