From b3da1b34b2ab94187fbc5885e1848d3eee13dfac Mon Sep 17 00:00:00 2001 From: Ernest Nowacki <124677192+ernest-nowacki@users.noreply.github.com> Date: Thu, 12 Sep 2024 10:27:26 +0200 Subject: [PATCH] Fix error description for removing consumer validation error (#69) * Fix error description for removing consumer validation error * Add changeset --- .changeset/perfect-tomatoes-stare.md | 5 +++++ src/SubscriptionManager.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/perfect-tomatoes-stare.md diff --git a/.changeset/perfect-tomatoes-stare.md b/.changeset/perfect-tomatoes-stare.md new file mode 100644 index 0000000..afdf995 --- /dev/null +++ b/.changeset/perfect-tomatoes-stare.md @@ -0,0 +1,5 @@ +--- +'@chainlink/functions-toolkit': patch +--- + +Improve the error message around remove consumer input validation diff --git a/src/SubscriptionManager.ts b/src/SubscriptionManager.ts index d3f0e76..174ff99 100644 --- a/src/SubscriptionManager.ts +++ b/src/SubscriptionManager.ts @@ -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