We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52798f2 commit d1bb61eCopy full SHA for d1bb61e
src/transactions/management/newTransactionWorker.ts
@@ -357,6 +357,9 @@ export class NewTransactionWorker {
357
358
for (const response of this.pendingResponses) {
359
if (sequenceNumber > response.sequenceNumber) {
360
+ // The increased sequence number is enough information to know that the transaction
361
+ // was committed to the chain. We return the hash so that the caller can decide
362
+ // whether to fetch the UserTransactionResponse or just track.
363
response.deferred.resolve(response.hash);
364
this.pendingResponses.delete(response);
365
} else if (Math.floor(Date.now() / 1000) > response.expirationTimestamp) {
0 commit comments