Skip to content

Commit

Permalink
feat: implement TransactionResponse.get[Receipt|Record]Queryf()
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Akhterov <[email protected]>
  • Loading branch information
janaakhterov committed May 17, 2022
1 parent 96718ae commit 788a8f5
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,10 @@ public TransactionReceipt getReceipt(Client client) throws TimeoutException, Pre
return receipt;
}

public TransactionReceipt forceGetReceipt(Client client) throws TimeoutException, PrecheckStatusException {
public TransactionReceiptQuery getReceiptQuery() {
return new TransactionReceiptQuery()
.setTransactionId(transactionId)
.setNodeAccountIds(Collections.singletonList(nodeId))
.execute(client);
.setNodeAccountIds(Collections.singletonList(nodeId));
}

@Override
Expand All @@ -87,12 +86,10 @@ public TransactionRecord getRecord(Client client) throws TimeoutException, Prech
.execute(client);
}

public TransactionRecord forceGetRecord(Client client) throws TimeoutException, PrecheckStatusException {

public TransactionRecordQuery getRecordQuery() {
return new TransactionRecordQuery()
.setTransactionId(transactionId)
.setNodeAccountIds(Collections.singletonList(nodeId))
.execute(client);
.setNodeAccountIds(Collections.singletonList(nodeId));
}

@Override
Expand Down

0 comments on commit 788a8f5

Please sign in to comment.