Skip to content

Commit

Permalink
Add txId to BondedReputationDto
Browse files Browse the repository at this point in the history
Signed-off-by: HenrikJannsen <[email protected]>
  • Loading branch information
HenrikJannsen committed Jun 30, 2024
1 parent 94c3b50 commit 0db2fe8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@
@Schema(title = "BondedReputation")
public class BondedReputationDto {
private final long amount;
private final long time;
private final long blockTime;
private final String hash;
private final int blockHeight;
private final int lockTime;
private final String txId;

public BondedReputationDto(long amount, long time, String hash, int blockHeight, int lockTime) {
public BondedReputationDto(long amount, long blockTime, String hash, int blockHeight, int lockTime, String txId) {
this.amount = amount;
this.time = time;
this.blockTime = blockTime;
this.hash = hash;
this.blockHeight = blockHeight;
this.lockTime = lockTime;
this.txId = txId;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public List<BondedReputationDto> getBondedReputation(@Parameter(description = DE
tx.getTime(),
Hex.encode(bondedReputation.getBondedAsset().getHash()),
blockHeight,
bondedReputation.getLockTime()
bondedReputation.getLockTime(),
tx.getId()
);
} else {
return null;
Expand Down

0 comments on commit 0db2fe8

Please sign in to comment.