Skip to content

Commit

Permalink
fix: contract proxy method discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
dvlkv committed Sep 13, 2024
1 parent d1c6a78 commit 2b23bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contract/openContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function openContract<T extends Contract>(src: T, factory: (params: { add
return new Proxy<any>(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]);
}
Expand Down

0 comments on commit 2b23bad

Please sign in to comment.