Skip to content

Commit

Permalink
override tostring for PrivateTransactionReceipt (#1478)
Browse files Browse the repository at this point in the history
  • Loading branch information
yasseralaa authored Sep 6, 2021
1 parent b2136e3 commit 3684582
Showing 1 changed file with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,44 @@ public int hashCode() {
status,
revertReason);
}

@Override
public String toString() {
return "PrivateTransactionReceipt{"
+ "contractAddress='"
+ contractAddress
+ '\''
+ ", from='"
+ from
+ '\''
+ ", to='"
+ to
+ '\''
+ ", output='"
+ output
+ '\''
+ ", logs="
+ logs
+ ", commitmentHash='"
+ commitmentHash
+ '\''
+ ", transactionHash='"
+ transactionHash
+ '\''
+ ", privateFrom='"
+ privateFrom
+ '\''
+ ", privateFor="
+ privateFor
+ ", privacyGroupId='"
+ privacyGroupId
+ '\''
+ ", status='"
+ status
+ '\''
+ ", revertReason='"
+ revertReason
+ '\''
+ '}';
}
}

0 comments on commit 3684582

Please sign in to comment.