Skip to content

Commit

Permalink
Merge pull request #66 from smartcontractkit/coordinator-v1.3-timeout…
Browse files Browse the repository at this point in the history
…-update

Enable timing out requests on Coordinator v1.3.1
  • Loading branch information
KuphJr authored Aug 6, 2024
2 parents aa2bd32 + a6d789e commit 32378e6
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 32378e6

Please sign in to comment.