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