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));