From 2b23bada50787ad01dd326b87a9ed415c5ef7ee5 Mon Sep 17 00:00:00 2001 From: Dan Volkov Date: Fri, 13 Sep 2024 11:41:02 +0400 Subject: [PATCH] fix: contract proxy method discovery --- src/contract/openContract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contract/openContract.ts b/src/contract/openContract.ts index a803a55..103129c 100644 --- a/src/contract/openContract.ts +++ b/src/contract/openContract.ts @@ -45,7 +45,7 @@ export function openContract(src: T, factory: (params: { add return new Proxy(src as any, { get(target, prop) { const value = target[prop]; - if (typeof prop === 'string' && (prop.startsWith('get') || prop.startsWith('send'))) { + if (typeof prop === 'string' && (prop.startsWith('get') || prop.startsWith('send') || prop.startsWith('is'))) { if (typeof value === 'function') { return (...args: any[]) => value.apply(target, [executor, ...args]); }