From 32a9f329a3b0557a9cc6ce558e3fb56539131644 Mon Sep 17 00:00:00 2001 From: Maximilian Hubert <64627729+gap-editor@users.noreply.github.com> Date: Mon, 11 Aug 2025 18:33:57 +0200 Subject: [PATCH] fix(contract): Clarify error message for invalid function name --- src/tools/contracts/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/contracts/index.ts b/src/tools/contracts/index.ts index 9b5f3c6..954ee5c 100644 --- a/src/tools/contracts/index.ts +++ b/src/tools/contracts/index.ts @@ -47,7 +47,7 @@ export class BaseMcpContractActionProvider extends ActionProvider 'name' in item && item.name === args.functionName, ) as AbiFunction; } catch (error) { - throw new Error(`Invalid function name: ${args.functionName}. ${error}`); + throw new Error(`Invalid function name: ${args.functionName}. Error: ${error}`); } const chain = chainIdToChain(Number(walletProvider.getNetwork().chainId));