Skip to content

Commit

Permalink
Fix error description for removing consumer validation error (#69)
Browse files Browse the repository at this point in the history
* Fix error description for removing consumer validation error

* Add changeset
  • Loading branch information
ernest-nowacki authored Sep 12, 2024
1 parent 847f200 commit b3da1b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/perfect-tomatoes-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/functions-toolkit': patch
---

Improve the error message around remove consumer input validation
2 changes: 1 addition & 1 deletion src/SubscriptionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export class SubscriptionManager {
}

if (!utils.isAddress(consumerAddress)) {
throw Error(`Adding consumer contract failed - invalid address ${consumerAddress}`)
throw Error(`Removing consumer contract failed - invalid address ${consumerAddress}`)
}

let subInfo
Expand Down

0 comments on commit b3da1b3

Please sign in to comment.