Unfortunately both getSubscribedTransactions and pollOnce return the currentRound inside TransactionSubscriptionResult. If we wanted to support this properly, we'd need to make a breaking change and ensure the polling processes honour this configuration.
Instead I figured it was better to simply solve the problem at hand, which is preventing double status calls, when using pollOnce, which is what this PR does.
I attempted to implement this as a
syncTo
feature as discussed here. https://github.com/algorandfoundation/algokit-subscriber-ts/pull/58#issuecomment-2066065152Unfortunately both
getSubscribedTransactions
andpollOnce
return thecurrentRound
insideTransactionSubscriptionResult
. If we wanted to support this properly, we'd need to make a breaking change and ensure the polling processes honour this configuration.Instead I figured it was better to simply solve the problem at hand, which is preventing double status calls, when using
pollOnce
, which is what this PR does.