Skip to content

Commit

Permalink
Enable timing out requests on Coordinator v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
KuphJr committed Jul 18, 2024
1 parent aa2bd32 commit a6d789e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-mugs-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/functions-toolkit': minor
---

Enable timing out requests on Coordinator v1.3.1
5 changes: 5 additions & 0 deletions src/SubscriptionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,11 @@ export class SubscriptionManager {
throw Error('Must provide at least one request commitment')
}

requestCommitments = requestCommitments.map(commitment => {
commitment.adminFee = 0n
return commitment
})

try {
const timeoutTx = txOptions?.overrides
? await this.functionsRouter.timeoutRequests(requestCommitments, txOptions)
Expand Down

0 comments on commit a6d789e

Please sign in to comment.